Results 1 to 3 of 3

Thread: Add tip for x-tool-collapse-X

  1. #1
    Ext User tinnt's Avatar
    Join Date
    Apr 2008
    Location
    vietnam
    Posts
    34

    Default Add tip for x-tool-collapse-X

    I have a trouble, I have a viewport , at the west and east region i have to collapse button
    class="x-tool x-tool-collapse-east" , class="x-tool x-tool-collapse-west", the id of them is automatic generate, so if i want to add a tip for them by:
    new Ext.ToolTip({
    target: 'my_id',
    autoHide : true,
    html: 'Click here to collapse this pane'
    });

    This is my trouble way, who can show me how to get the id of them to pass it to my function. . The second way so ugly, i find it byClassName and set the title='Click here to collapse this pane', it so slow. Who can help me. Thank you very much, sorry for my bad English.

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Try:

    Code:
    Ext.QuickTips.init();
    Ext.QuickTips.register({
    	target: eastPanel.tools.toggle,
    	text: 'Click here to collapse this pane'
    });
    Ext.QuickTips.register({
    	target: container.getLayout().east.getCollapsedEl().child('.x-tool-expand-east'),
    	text: 'Click here to expand this pane'
    });

  3. #3
    Ext User tinnt's Avatar
    Join Date
    Apr 2008
    Location
    vietnam
    Posts
    34

    Default

    Well done!
    Thank you very much.

Tags for this Thread

Posting Permissions

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