Results 1 to 2 of 2

Thread: Multiple quicktips using same contentEl

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    1
    Vote Rating
    0
      0  

    Default Multiple quicktips using same contentEl

    Hi,

    I try to use the example on http://dev.sencha.com/deploy/ext-4.0.2a/examples/qtips/qtips.html
    ,and make some change like:
    {
    id: 'content-anchor-tip',
    target: 'track-tip',
    autoHide: true,
    contentEl: 'content-tip', // load content from the page

    },{
    id: 'content-anchor-tip2',
    target: 'leftCallout',
    autoHide: true,
    contentEl: 'content-tip', // load content from the page
    }

    two quicktips using same contentEl,
    the quicktips shows correct at the first time,but if my mouse move to the other quicktip ,then back to the first quicktip ,it shows empty,which confuse me...
    here is the screen shot:
    before
    before.png
    after
    after.png

    THX ~

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585
    Vote Rating
    394
      0  

    Default

    Please use CODE tags when posting code (# button on the editor toolbar).

    http://docs.sencha.com/ext-js/4-0/#!...-cfg-contentEl

    This config option is used to take an existing HTML element and place it in the layout element of a new component (it simply moves the specified DOM element after the Component is rendered to use as the content.
    Each component is only rendered once. On rendering, each component will move the DOM element, so the last component to render will end up keeping it.

Posting Permissions

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