| |
Tree ViewUsage | Design-relevant Attributes | Related Controls
UsageTrees contain complex information and are cumbersome to use. If possible, do not use trees and consider other alternatives, especially in iViews. Trees with hierarchies more than 2-3 levels deep should be avoided altogether! How to Avoid TreesIf the number of tree elements is small, hierarchies can be flattened to lists, and the items may follow some other ordering like by alphabet or relevance. Consider using dropdown list boxes, the shuffler (filter) or tabstrips in combination with tables in order to select partial data sets. This leads to a far less complex user interface than large trees that have to be scrolled or paged through. Design-relevant AttributesThe tree view control does not have a width attribute. To set the width, place the tree inside a grid layout control. Use attribute title to set a title for the tree. For tree items, the item text and a corresponding tooltip text can be defined (attributes text and tooltip). Related ControlsItem List, Dropdown List Box, Table View, Tabstrip, Grid Layout (for sizing) |
||||