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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    A tooltip should not be a child item. You should create it and use the show() method.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •