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 User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,663
    Answers
    130
    Vote Rating
    110
    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 User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,338
    Answers
    498
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar