-
17 Jun 2010 1:48 AM #1
Need help with qtipCfg via json on TreeNode
Need help with qtipCfg via json on TreeNode
Hey folks,
I'm displaying a Quicktip on async treenodes which are passed via json:
while $qtipText is filled before and could have many rows delimited by <br />. So far, this is working pretty well (widht 500px, displaying a title and the text). Now I wanted to extend the config withPHP Code:array_push($roles, array(
"iconCls" => "role",
"leaf" => "true",
"text" => $row["ROLE_NAME"],
"qtipCfg" => array(
"xtype" => "quicktip",
"title" => $row["ROLE_DESCRIPTION"],
"width" => 500,
"text" => $qtipText
)
));
but those have no impact at all.PHP Code:"dismissDelay" => 0,
"height" => "500",
"autoScroll" => "true"
Does anyone know which parameters are taken or how I can reach the goals of disable automatic hiding and display the Quicktip with a limited height and a scrollbar?
Any help is appreciated! Thanks in advance....
-
17 Jun 2010 1:52 AM #2
Configure it autoHeight: false
See autoHideSearch the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
17 Jun 2010 2:11 AM #3
Hi Animal,
thanks for the quick reply. I tried with autoHide, it worked, but had the effect, that the QuickTip was still displayed after mouseout. Than I retreid with "dismissDelay" => 0 which again had no effect. "dismissDelay" => 5000000000000 did the work now!
With "autoHeight" => "false" or "autoHeight" => falsestill no success...
Still trying..
-
17 Jun 2010 2:15 AM #4
autoHeight: false should work.
Need to see the resulting Javascript, not PHP.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
17 Jun 2010 3:08 AM #5
Hi Animal,
as the qtipCfg is taken from the json, here is the console.log from the qtipCfg:
Unbenannt.PNG
-
17 Jun 2010 3:17 AM #6
The resulting Javascript.
I don't know what you have logged there. It looks bad. el as a span???Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
17 Jun 2010 4:31 AM #7
I logged the attributes.qtipCfg of the leaf, as it comes back from the server (load: function(node)....)
As I can see in the HTML-Dom the leaf is rendered as a nested span...
So what looks bad about it?
Cheers...
-
17 Jun 2010 4:42 AM #8
How come the qtipCfg has an el?
Look at the JSON as it is received through Ajax when the TreeLoader requests the node. Use Firebug.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
17 Jun 2010 5:09 AM #9
Hi Animal,
so this is the json comming back from the server:
Don't know why it has an el when I log it in javascript...Code:[ { "iconCls": "role", "leaf": "true", "text": "rol_OE_2", "qtipCfg": { "xtype": "quicktip", "title": "Mitarbeiter darf Daten sehen", "width": 500, "text": "RestrictionOrganization | 11 | true<br\/>", "dismissDelay": 600000, "autoHeight": false, "height": 500 } }, { "iconCls": "role", "leaf": "true", "text": "rol_I-1", "qtipCfg": { "xtype": "quicktip", "title": "Rolle 1", "width": 500, "text": "AdminGlobal | adminobject | true<br\/>AdminGlobal | adminglobal | true<br\/>AdminSubstitute | AdminSubstitute | true<br\/>AdminSubstitute | adminobject | true<br\/>AdminSubstitute | AdminSubstituteA | true<br\/>AdminSubstitute | AdminSubstituteLevel | true<br\/>", "dismissDelay": 600000, "autoHeight": false, "height": 500 } } ]
-
17 Jun 2010 5:13 AM #10
I'd say use a single Ext.ux.DataTip instance on the tree, configured as you want it, and with a tpl of '{text}'
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
Similar Threads
-
Using 'anchor', 'anchorOffset', and 'anchorToTarget' on Treenode qtipCfg
By wilzan in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 1 Sep 2009, 8:38 AM -
Help with TreePanel qtipCfg
By donnki in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 31 Aug 2009, 1:24 AM -
How to specify a qtipCfg in json for treenode
By mabra in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 13 Jul 2009, 11:28 AM -
TreeNode and qtipCfg
By leoncx in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 25 Mar 2009, 12:29 AM -
AsyncTreeNode qtipCfg from JSON
By crxtech in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 25 Mar 2009, 12:28 AM


Reply With Quote