-
1 Sep 2011 3:58 AM #1
Answered: qtip on a Grid cell
Answered: qtip on a Grid cell
How to display a hint?
In "Extjs 3" worked the following way
But in the new version is not "metadata.attr" and "ext:qtip".PHP Code:renderer: function (value, metadata, record, rowIndex, colIndex, store) {
metadata.attr = 'ext:qtip="' + value + '"';
return value;
}
I solved the problem this way:
Is this the right way? Or is there a good one?PHP Code:return "<div data-qtip='my <b>title</b>'>"+value+"</div>";
-
Best Answer Posted by skirtle
Ignoring the escaping issues it would be:
Code:renderer: function(value, metaData) { metaData.tdAttr = 'data-qtip="' + value + '"'; return value; }
-
1 Sep 2011 7:01 AM #2Sencha - Services Team
- Join Date
- May 2007
- Location
- Munich (Germany)
- Posts
- 2,292
- Vote Rating
- 6
- Answers
- 57
http://docs.sencha.com/ext-js/4-0/#!...uickTipManager
so basicallyCode:// 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>
should work.Code:metadata.attr = 'data-qtip="' + value + '"';
-
1 Sep 2011 5:50 PM #3
Ignoring the escaping issues it would be:
Code:renderer: function(value, metaData) { metaData.tdAttr = 'data-qtip="' + value + '"'; return value; }
-
1 Sep 2011 7:11 PM #4
Thanks, skirtle response is more accurate in the matter.


Reply With Quote