| Page 1 of 1 | [ 2 posts ] |
|
I have webpage which uses the treeview to display multiple tables of information. Inside the treeview there are comment sections, which are just basic html textboxes. When trying to edit these textboxes, the user cannot edit them unless they click in the textbox and hold down the mouse button while typing. If they click inside the textbox to edit it like normal, the cursor flashes in the box and then goes away. I think I may have some sort of problem with event handling, like the treeview is interfering with routine events in my html.
Any insight or help with this problem would be much appreciated. I do not have a large amount of experience with YUI, so any examples or code bits would be great as well. Thanks! |
|
The default behavior for a tree node is to toggle when clicked, no matter in which component within the node. To disable this behaviour, you have to return false on the clickEvent:
myTreeView.subscribe('clickEvent',function() { return false; }); Of course you can do more things in it, but by at least returning false, it means you are dealing with the event yourself. The node will still toggle when you click on the plus/minus sign. Also, have you noticed the labels on TextNodes are already editable? |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group