Text List is in the Additional palette tab.
For a list that contains a large number of items, Text List performs
better than List.
Text List currently has a bug, which shows one more visible row than
is set in the visibleRows attribute.
allowMultipleSelection |
Turns the ability to select more than one item in the list on or off. |
items |
Adds strings to the list. |
visibleRows |
Sets the number of rows in the list. |
To add a multiple column list:
To add content to the columns, you must add code to a component's source file. Open the Operations dialog box for the component that will be used to add items to the lists. Add items with the addItem method. Code should be added to the body class for the component, not its shadow class.
To specify the alignment of the items in each column, enter l (left), r (right), or c (center) in the formats text box. The first alignment character entered sets the alignment for the first column, the next character added to the text box sets the alignment for the next column. You can also click on the button to the right of the text box to open the Formats dialog box to set the alignment for the contents of each column.
autowidth |
Automatically widens a column to accommodate new data. |
formats |
Sets the left, center, or right alignment of the list for each column. Example: a format value of lcl left aligns the list items in columns 1 and 3, while text in column 2 is aligned in the center. |
headers |
Inserts the names of column headers. |
highlightItems |
When set to true, temporarily highlights a row in which you programmatically change the values. Useful for demos or applications where you want to draw attention to the arrival of new information in the list. |
selectable |
Sets items in the list as selectable by users. |
showHeaders |
Determines whether column headers are displayed. |
showHorizontalLines |
Determines whether horizontal lines are displayed between rows. |
showVerticalLines |
Determines whether vertical lines are displayed between columns. |
sortColumns |
Determines whether items in each column are shown in ascending or descending order. A "+" preceding the header name displays items under that header in ascending the order (default). A "-" preceding the header name displays items under that header in descending order. |
See also: