Results 1 to 4 of 4

Thread: Display a panel on Button tooltip

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    106
    Answers
    10

    Default Answered: Display a panel on Button tooltip

    Hi All,

    I have a panel, having some fields (text field and comobox). Is it possible to show this panel on button tool tip.

    Any help is appreciated.


    Thanks
    Zinnia

  2. Resolved this issue, here is the sample code

    {
    xtype: 'button',
    text: 'click',
    listeners: {
    render: function(butn){
    var tip = Ext.create('Ext.tip.ToolTip', {
    target: butn.el,
    items:[{
    xtype: 'panel',
    items:[{
    xtype:'textfield',
    fieldLabel:'Testing'
    }]

    }]

    });
    }
    }
    }

  3. #2
    Sencha Premium User
    Join Date
    Mar 2011
    Posts
    287
    Answers
    35

    Default

    I know this doesn't directly answer your question, but the tooltip shows up on mouseover. So why not display the panel on the button's mouseover event?

  4. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    106
    Answers
    10

    Default

    How to Show that panel On that button position, so that it will look like tool tip to that button

  5. #4
    Sencha User
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    106
    Answers
    10

    Default

    Resolved this issue, here is the sample code

    {
    xtype: 'button',
    text: 'click',
    listeners: {
    render: function(butn){
    var tip = Ext.create('Ext.tip.ToolTip', {
    target: butn.el,
    items:[{
    xtype: 'panel',
    items:[{
    xtype:'textfield',
    fieldLabel:'Testing'
    }]

    }]

    });
    }
    }
    }

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
  •