ListBox

<< Click to Display Table of Contents >>

Navigation:  IWML > Tags > Controls >

ListBox

The ListBox control in IWML creates a list of selectable options, functioning either as a standard dropdown or a visible list depending on container constraints.

 

Syntax

 

ListBox[:Name]

 Items:

   ...

 ]

 

Name — optional control identifier.

Items — defines the list of options, supports grouping, values, and disabling.

 

Properties

 

Index — index of the currently selected item (ignores groups).

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).

 

Try It

 

ListBox

 Index: 4

 Sort: desc

 AutoHeight: 1

 Items:

   Halifax

   Toronto

   Vancouver

   Larnaca

   Limassol

   Nicosia

   Paphos

   Berlin

   Frankfurt

   Erie

   Houston

   Knoxville

   Pittsburgh

   San Francisco

   Barnoul

   Irkutsk

   St Petersburg

   Other

 ]

]