- var rt = Ext.data.Record.create([
- {name: 'day'},
- {name: 'holiday'}
- ]);
- var myStore = new Ext.data.Store({
- reader: new Ext.data.ArrayReader(
- {
- idIndex: 0 // id for each record will be the first element
- },
- rt // recordType
- )
- });
- var myData = [
- [1, true], // note that id for the record is the first element
- [2, true],
- [3, false],
- ];
- myStore.loadData(myData);
- console.log(myStore.find('day',/^2$/));