PDA

View Full Version : Ext.grid.column.Action items inconsistency



gevik
15 Jan 2012, 1:50 AM
Hi,

Please provide a better implementation for the action items of the Ext.grid.column.Action. The current implementation creates IMG elements based on an undefined component spec.

To keep this consistent, the Action items should have a defined component structure. You already have done this for Panel tools, so the implementation should be trivial.

Consider:



Ext.grid.column.action.Command:

with configs:
toolTip,
icon or iconCls

with listeners:
handler

and:

Ext.grid.column.action.LinkCommand (renders text/link instead of IMG):

with configs:
toolTip,
text

with listeners:
handler

mitchellsimoens
15 Jan 2012, 2:38 PM
The issue I see with making the action items a component is you will have a lot of them and what will this do to performance?

vietits
16 Jan 2012, 3:46 PM
Hi Gevik,

I've just created `Its.grid.column.Component` (http://www.sencha.com/forum/showthread.php?174504-Its.grid.column.Component-Component-Column-for-Ext-4.0.7). This component allows you to render Ext component(s) in the grid column. It can be used to replace `Ext.grid.column.Action` (by render buttons) and many other kinds of grid column.

gevik
16 Jan 2012, 10:14 PM
That is awesome, thax :)