1. #1
    Ext JS Premium Member gevik's Avatar
    Join Date
    May 2009
    Location
    The Netharlands
    Posts
    266
    Vote Rating
    9
    gevik will become famous soon enough

      0  

    Lightbulb Ext.grid.column.Action items inconsistency

    Ext.grid.column.Action items inconsistency


    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:

    Code:
    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,408
    Vote Rating
    851
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    Hi Gevik,

    I've just created `Its.grid.column.Component`. 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.

  4. #4
    Ext JS Premium Member gevik's Avatar
    Join Date
    May 2009
    Location
    The Netharlands
    Posts
    266
    Vote Rating
    9
    gevik will become famous soon enough

      0  

    Default


    That is awesome, thax

Thread Participants: 2