Results 1 to 5 of 5

Thread: Extjs 6 + Tree List add click event

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    21

    Default Answered: Extjs 6 + Tree List add click event

    Hi,

    I'm using this example for my applications :

    http://examples.sencha.com/extjs/6.0...ink/#tree-list

    I would like to know where I've to put my listener to detect the click on an item in the tree.

    Thx you,

  2. Not sure what you are attempting here but:
    Code:
    Ext.create('Ext.tree.Panel', {
        title: 'Simple Tree',
        width: 200,
        height: 200,
        store: store,
        rootVisible: false,
        renderTo: Ext.getBody(),
        listeners:
            select: 'treeNodeSelect'
        }
    });
    In your viewcontroller:
    Code:
    treeNodeSelect: function(tree,record,ndx,opts){
        //Do Something Here With The Selected Node
    }

Similar Threads

  1. Replies: 2
    Last Post: 11 May 2015, 4:34 AM
  2. Extjs dataview click and double click event
    By nissagala in forum Ext: Q&A
    Replies: 5
    Last Post: 12 Apr 2015, 7:10 AM
  3. Click event on tree...
    By oblomov77 in forum Sencha GXT Discussion
    Replies: 2
    Last Post: 18 Jun 2012, 6:48 PM
  4. Extjs tree :Enableing click and double click event togrther
    By 2manish3 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 30 Apr 2012, 7:32 PM
  5. Click event on Tree Panel +/-
    By catapult in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 25 May 2010, 5:22 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
  •