jQuery UI Widgets › Forums › Navigation › Tree › Tree: Set width of text display
Tagged: text width, Tree
This topic contains 5 replies, has 2 voices, and was last updated by Alastair Walker 1 day ago.
Is there a method to set the width of the text display?
I have, on occasion very long strings in the tree display – these extend to the far right of the display.
It would be helpful to be able to set the maximum width of the display. Text longer than maximum width will then flow onto the next line.
Any guidance on this possibilty will be really appreciated.
Please, take a look at the following Example.
Martin – thank you very much! That is very helpful!
Hello – Martin,
As a sequal to the note above, I have a component where I have two trees, side by side (in different divisions).
What I find in using the CSS handle i.e. .jqx-tree-item, is that it is common to both trees.
I would like to be able to set the text display widths for each tree independently of the other.
Can this be achieved? (It seems to me that I will need something like .jqx-tree-item-left and .jqx-tree-item-right, to be able to do this.
Is this feasible to set up?
You can simply include the tree element id in the CSS selector.
You can check this Example.
Ok – that is very helpful!
Thank you very much!
You must be logged in to reply to this topic.