2011-03-14 96 views

回答

2

這裏是用於過濾器的例子。以下代碼片段將用於您的過濾器插件的實例化塊中。

filters: [{ 
    type: 'list', 
    dataIndex: 'dataInTheStoreName', // use this as the value 
    single: false, // true for radio buttons 
    labelField: 'dataInTheStoreLabel', // use this as the label 
    store: new yourExampleStore() 
}.{...your other filters...}] 

因此,只要一個ExtJS存儲對象訪問您的數據,並將其連接到列表中的過濾器。 有很多這樣的例子,如here