Results 1 to 4 of 4

Thread: ViewController - action - Target Type

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Macerata
    Posts
    16
    Vote Rating
    0
      0  

    Default ViewController - action - Target Type

    Hi,

    i don't find 'Ext.list.Tree' to ViewController - action - Target Type.

  2. #2
    Ext Support Team
    Join Date
    Nov 2017
    Posts
    46
    Vote Rating
    -15
      1  

    Default

    Hey,

    Not pretty clear on this. Can you elaborate?

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Macerata
    Posts
    16
    Vote Rating
    0
      0  

    Default

    I created a ActionSheet and added two 'Ext.list.tree'.

    into ViewController I want add Action for TreeList, but i don't find it.

    Schermata 2017-12-12 alle 11.25.59.png

    At this time I create two event for TreeList (IMAGE 1)

    But i want create Action on ViewController.


    Schermata 2017-12-12 alle 11.26.23.png

  4. #4
    Sencha Premium User
    Join Date
    Oct 2012
    Location
    United States
    Posts
    130
    Vote Rating
    12
      0  

    Default

    Quote Originally Posted by Zeusss82 View Post
    I created a ActionSheet and added two 'Ext.list.tree'.

    into ViewController I want add Action for TreeList, but i don't find it.

    Schermata 2017-12-12 alle 11.25.59.png

    At this time I create two event for TreeList (IMAGE 1)

    But i want create Action on ViewController.


    Schermata 2017-12-12 alle 11.26.23.png
    Create a function in your ViewController ---
    as an example -
    Code:
    // viewcontroller selection change function
    onSelecionChange: function(tree, node){
        /// selection change logic
    }
    then on your treelist add a listener to use it

    Code:
    // add listener in treelist component to fire the selection change function you created above.
    listeners: {
        selectionchange: 'onSelectionChange'
    }
    This is what creating an ViewController action in architect does for you, sometimes you have to just do it manually.

    Anyway, this should solve your problem.

Similar Threads

  1. How to use viewController as handler for grid action column item
    By andreas-spindler in forum Sencha Architect 3.x: Q&A
    Replies: 12
    Last Post: 16 Feb 2015, 4:15 AM
  2. ViewController Type Error
    By a337844953 in forum Ext 5: Q&A
    Replies: 1
    Last Post: 13 Jun 2014, 6:28 AM
  3. [INFOREQ] ControllerAction Target missing Action Column Items?
    By JoelRSimpson in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 30 Apr 2012, 10:37 AM
  4. Feature Request: Controller Action Target Type Includes User Defined Class
    By billtricarico in forum Sencha Architect 2.x: Help & Discussions
    Replies: 1
    Last Post: 29 Mar 2012, 9:53 AM

Posting Permissions

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