|
Ext.regModel('DatesList', {
fields: [
{name: 'date', type: 'string'}
]
});
store = new C8O.Store({
model: 'DatesList',
root: 'document.dates.date',
server : server
});
root: the root object to iterate on
server: a C8O server object
var select = new Ext.form.Select({
name: 'dateD',
label: 'date of departure',
valueField: 'date',
displayField: 'date',
store: store
});
name : Name of the parameter posted with the form
label : Label displayed of the select
valueField : Corresponds to the "value" property of the select's option tag (must exist in the model). Default value="value"
displayField: Corresponds to the content of the select's option tag (must exist in the model). Default value=="text"
store : the store containing the data. Must be load
|