PDA

View Full Version : Widget Column/Cell in Grid



COSJW
17 Oct 2016, 12:15 AM
I'm trying to add a widgetcell to my grid.
e.g. from here: http://examples.sencha.com/extjs/6.2.0/examples/kitchensink/?modern#big-data-grid



cell: {
xtype: 'widgetcell',
widget: {
xtype: 'button',
ui: 'action',
bind: 'Verify {record.firstName}',
handler: 'onVerifyTap'
}
}



How can I do this in Architect 4? I'm using Ext JS 6.2.0.

The same question for the RowExpander Plugin. Is this available in Architect?

petr.vecera
17 Oct 2016, 1:45 AM
Hello

Just add basic column to the grid and edit it's config cell, there you can write your code.

cell: {
xtype: 'widgetcell',
widget: {
xtype: 'button',
ui: 'action',
bind: 'Verify {record.firstName}',
handler: 'onVerifyTap'
}
}

This forum post might be interesting for you: https://www.sencha.com/forum/showthread.php?329707-How-to-create-grid-with-advanced-features

Rowexpander plugin will be available in the toolbox in the next feature update. But you can switch the config plugins type in the config panel to array and define the plugin manually in the code.

Regards
Petr