1
我構建了一個edgeToEdgeStoreList,它可以工作。現在我想對這些項目進行排序或者通過標籤進行過濾。 我已經設置好的參數查詢作爲:如何對EdgeToEdgeStoreList的項目進行排序
var sampleStore = new Memory({data:listini_data, idProperty:"label"});
storeElencoListiniClienti = new EdgeToEdgeStoreList({store:sampleStore,query:{label:/1$/}}, "ulElencoListiniClienti");
storeElencoListiniClienti.startup();
,但它顯示的所有項目,並在「1」不僅是那些標籤結束。 爲什麼?我如何爲訂購商品設置正確的查詢參數?
如果我用這個方法:
storeOrdiniCliente.setQuery('label:/1$/');
顯示瀏覽器的控制檯上的消息:
Error: No filter function label:/1$/ was found in store
這是listini_data:按標籤
[Object { label="1537 | IMM | 14/07/2011", codice_ordine="16537", stato_ordine="IMM", more...}, Object { label="12790 | IMM | 24/04/2012", codice_ordine="16790", stato_ordine="IMM", more...}, Object { .....