ListBoxBase

<< Click to Display Table of Contents >>

Navigation:  IWML > Tags > Controls >

ListBoxBase

The ListBoxBase control provides a configurable list of selectable items and serves as the foundational structure for other list-based controls such as ListBox. While it is typically extended, it can also be used directly in IWML for simpler list rendering needs.

 

Compared to ListBox, ListBoxBase does not support data binding to Index, Text, or Value — making it more lightweight and suitable for static or unbound lists.

 

Syntax

 

ListBox[:Name]

 Items:

   ...

 ]

 

Name — optional identifier for referencing the control.

Items — defines the list entries shown in the list box.

 

Properties

 

AutoHeight — controls the vertical size:

-1: Use fixed height

0: Auto-adjust to item count

1: Collapse to dropdown

>1: Set visible row count

Sort — optional sorting: ascending, descending, or none (asc|desc|none).

Values — optional array of matching values to pair with Items.

 

 

ListBoxBase:CountrySelector

 AutoHeight: 0

 Sort: asc

 Items:

   Canada

   Germany

   Japan

   Spain

   Sweden

   Switzerland

   United Kingdom

   United States

 ]

 Values:

   CA

   DE

   JP

   ES

   SE

   CH

   UK

   US

 ]