有没有办法操纵MultiSelector Search组件预选一些项目?
相关链接:
MultiSelector KitchenSink example
MultiSelector Docs Sencha page {
{3}}
答案 0 :(得分:0)
通过在Afterrender上选择MultiSelectorSearch组件中的记录来解决:
search: {
...
listeners:
{
afterrender: function(cpt)
{
// existing items store is sent through the MultiSelector config
cpt.selectRecords(me.getExistingStore().getData());
}
}
}