1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    42
    Answers
    1
    Vote Rating
    3
    rajindarr is on a distinguished road

      0  

    Default Unanswered: Use With action property in Extjs Button

    Unanswered: Use With action property in Extjs Button


    {xtype:'button',text:'Save',action:'save', itemId : 'save-item-id'} when we declared a button like above in a from component. what exactly the use with action:'save' ?

    I know to differentiate the buttons in controller we can use action like 'view button[action=save]' to trigger a event method, if the action for this purpose, we also can use 'view button[text=save]' in controllers.

    is there any use to use this action property in button declaration?

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    As far as I know, 'action' is just a custom property used to associate a logical action with a button. As you already stated, the 'action' property also provides a convenient selector for handling the a button's events in a Controller.

    I think this property can also be used to retrieve any custom Ext.Action associated with a button.

Thread Participants: 1