Hi I'm trying the admin dashboard template, I used this commands in sencha cmd
sencha package upgrade
sencha generate app -s templates/admin-dashboard/ Dashboard ../my-folder
sencha cmd 6.2.1.29
sencha extjs 6.2.1
Well I playing with the components and fin this posibble bug.
the grid is a copy of the filter example and does not show the filtering icons.
Code:
var shows = Ext.create('Ext.data.Store', {
fields: ['id','show'],
data: [
{id: 0, show: 'Battlestar Galactica'},
{id: 1, show: 'Doctor Who'},
{id: 2, show: 'Farscape'},
{id: 3, show: 'Firefly'},
{id: 4, show: 'Star Trek'},
{id: 5, show: 'Star Wars: Christmas Special'}
]
});
Ext.define('Admin.view.clientes.ClientesGrid', {
extend: 'Ext.grid.Panel',
xtype: 'clientesgrid',
requires: [
//'Ext.toolbar.Paging',
//'Ext.ux.form.SearchField',
//'Ext.grid.column.RowNumberer',
'Ext.grid.filters.Filters'
],
title: 'Sci-Fi Television',
height: 250,
store: shows,
plugins: 'gridfilters',
columns: [{
dataIndex: 'id',
text: 'ID',
width: 50
},{
dataIndex: 'show',
text: 'Show',
flex: 1,
filter: {
// required configs
type: 'string',
// optional configs
value: 'star', // setting a value makes the filter active.
itemDefaults: {
// any Ext.form.field.Text configs accepted
}
}
}]
});
gridfilter.jpg