Results 1 to 2 of 2

Thread: Tooltip on element in panel

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default Tooltip on element in panel

    I have a panel with items as follows:
    items: [
    {
    <snipped for brevity>
    {
    xtype: 'image',
    src: 'xyz'
    },
    {
    xtype: 'tooltip',
    html: 'hello world',
    target: ?
    }

    My question is what should I set the target to so that the tooltip shows up when I hover over the image. I tried adding an id for the image element and using "target: Ext.getCmp('imageid')" but that didn't work.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Answers
    3976
    Vote Rating
    1388
      0  

    Default

    A tooltip should not be a child item. You should create it and use the show() method.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •