1. #1
    Sencha User Radius-Service's Avatar
    Join Date
    Jul 2010
    Location
    Russia, Perm
    Posts
    47
    Vote Rating
    1
    Radius-Service is on a distinguished road

      0  

    Default Answered: qtip on a Grid cell

    Answered: qtip on a Grid cell


    How to display a hint?
    In "Extjs 3" worked the following way
    PHP Code:
    renderer: function (valuemetadatarecordrowIndexcolIndexstore) {
      
    metadata.attr 'ext:qtip="' value '"';
      return 
    value;

    But in the new version is not "metadata.attr" and "ext:qtip".

    I solved the problem this way:
    PHP Code:
    return "<div data-qtip='my <b>title</b>'>"+value+"</div>"
    Is this the right way? Or is there a good one?

  2. Ignoring the escaping issues it would be:

    Code:
    renderer: function(value, metaData) {
        metaData.tdAttr = 'data-qtip="' + value + '"';
        return value;
    }

  3. #2
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,695
    Vote Rating
    114
    Answers
    130
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


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

    Code:
    // Add a quick tip to an HTML button
    <input type="button" value="OK" data-qtitle="OK Button" data-qwidth="100"
         data-qtip="This is a quick tip from markup!"></input>
    so basically

    Code:
    metadata.attr = 'data-qtip="' + value + '"';
    should work.
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  4. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,625
    Vote Rating
    331
    Answers
    550
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Ignoring the escaping issues it would be:

    Code:
    renderer: function(value, metaData) {
        metaData.tdAttr = 'data-qtip="' + value + '"';
        return value;
    }

  5. #4
    Sencha User Radius-Service's Avatar
    Join Date
    Jul 2010
    Location
    Russia, Perm
    Posts
    47
    Vote Rating
    1
    Radius-Service is on a distinguished road

      0  

    Default


    Thanks, skirtle response is more accurate in the matter.

Thread Participants: 2