1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
Ext.Loader.setPath({
'Ux.field': 'ux'
});
Ext.Loader.setConfig({ disableCaching: false });
//</debug>
Ext.application({
name: 'MultiselectFieldDemo',
models: ['modelMselect'],
requires: [
'Ux.field.Multiselect'
],
launch: function() {
// Initialize the main view
Ext.Viewport.add(Ext.create('Ext.form.Panel', {
fullscreen: true,
items: [
{
xtype: 'fieldset',
title: 'Select',
items: [
{
xtype: 'multiselectfield',
label: 'Choose one',
delimiter: ',',
mode: 'MULTI', // default is MULTI,
// value: ['first','second'] , init value with an array
// value: 'first,second', init value with a string
options: [
{text: 'First Option', value: 'first'},
{text: 'Second Option', value: 'second'},
{text: 'Third Option', value: 'third'}
]
}
]
}
]
}));
}
});
Merci d'avance de votre aide |
Partager