在extjs中添加搜索框,搜索框代码如下:
this.searchField = new Ext.ux.form.SearchField({
store : this.store,
paramName : 'name',
emptyText : '姓名',
style : 'margin-left:5px;',
});
效果如下所示:
当点击按钮的时候自动加载数据给数据源store,数据源此时load()。
this.store.load();