Results 1 to 3 of 3

Thread: Selection approach with actions and toolbar

  1. #1
    Ext JS Premium Member Chau's Avatar
    Join Date
    Oct 2009
    Posts
    50

    Question Selection approach with actions and toolbar

    Hi!

    We are trying to use actions as items in a toolbar - works fine so far . But we want to be able to programmatically select an item in the toolbar. An example would be a group of actions, which can be toggled and we want to select which one is toggled and fire the corresponding action.

    Looking at the API, we haven't been able to determine how to approach this problem. Can anyone tells us how we should go on?

    Regards, Casper

  2. #2
    Ext JS Premium Member Chau's Avatar
    Join Date
    Oct 2009
    Posts
    50

    Default

    Hmm... no answers . If You think my question is wrongly phrased, please say so if it will help us get on the right track. I will gladly try to extend my post.

    /Casper

  3. #3
    Sencha User
    Join Date
    Sep 2009
    Location
    Calgary, Alberta, Canada
    Posts
    638

    Default

    This is a matter of a design decision.

    The function per se does not have to be tied to an item (like a globally referenced method, not what I would do), so you can programmaticly call it if you know where the function resides, similarly, this same function can be called from the item.

    Alternatively, you can call the function if the function resides in the item, by traversing the object tree or setting an id and getting the object by id, and then firing the method.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •