選択フィールドが 1 つあり、選択フィールド ピッカー イベントを手動で処理したいと考えています。selectfield の次のコード:
{
xtype: 'selectfield',
label: 'Choose one',
name:'abcd',
usePicker:true,
options: [
{text: 'First Option', value: 'first'},
{text: 'Second Option', value: 'second'},
{text: 'Third Option', value: 'third'}
],
defaultPhonePickerConfig: {
hideOnMaskTap: true,
listeners: {
change: function(ths, val) {
console.log('change event called');
},
pick: function(ths, The, slot) {
console.log('pick event called');
PICKER_CONFIG = null;
if (PICKER_CONFIG != true) {
if (The[slot.getName()] != undefined && The[slot.getName()] != null && The[slot.getName()] != "") {
// Ext.getCmp('contractList').setValue(The[slot.getName()]);
ths.fireEvent('change', ths, The);
ths.hide();
}
}
},
cancel: function() {
console.log('cancel called');
PICKER_CONFIG = true;
},
show:function(){
console.log('show called');
}
}
},
ベースcssを使用しているため、pickが呼び出されません。
ここに私のapp.scssがあります
@import 'sencha-touch/base';
しかし、sencha-touch default と default/all css を使用している場合は機能します:
@import 'sencha-touch/default';
@import 'sencha-touch/default/all;
しかし、私はそれを使いたくありませんsencha-touch/base cssを使用してそのピック
を取得する方法はありますか?