Use the Combo Box Web component when you would like to present
a user with a drop-down list of values to choose from. Only one value can
be selected.
General tab (iwcl:WComboBox)
- Name
- Enter a unique identifier for the IBM® i Web component. Do not use blanks or hyphens in a name. See Rules for IBM i Web component names and values.
- See Text string substitution for IBM i Web component labels for
information about externalizing text strings for text substitution purposes.
- Initial state
- Select Disabled or Hidden,
or both.
- Disabled
- Indicates that the Web component is not available for use.
- Hidden
- Indicates that the Web component is not visible on the page.
- Orientation
- Select the value to indicate the direction of the text and the alignment
of the Web component on the page. The possible values are Default, Left-to-right,
or Right-to-left.
- Default
- Specifies that the text direction and the alignment of the Web component
on the page are inherited from the containing element.
For example, if the
Web component is inserted in a form, and the form's orientation is specified
as Right-to-left, then the orientation for the Web
component is also Right-to-left.
The default
is Left-to-right.
- Left-to-right
- Specifies that the text direction is left-to-right, and that the Web component
is left-aligned on the page. This value overrides the inherited value.
- Right-to-left
- Specifies that the text direction is right-to-left, and that the Web component
is right-aligned on the page. This value overrides the inherited value.
- Tool tip
- Enter the description to be displayed when the mouse pointer is on the
Web component.
- See Text string substitution for IBM i Web component labels for
information about externalizing text strings for text substitution purposes.
- Access key
- Specify a character to be associated with a shortcut key that a user selects
to bring focus to the Web component.
- Tab index
- Enter a number for the tab order of the Web component that is created.
For example, a value of 1 means that this Web component is the first object
to receive focus in the tab sequence.
- Label
- Enter a caption for the Web component.
- See Text string substitution for IBM i Web component labels for
information about externalizing text strings for text substitution purposes.
- Label position
- Specify the position of the caption by selecting either Top or Left.
- Top
- Places the caption above the Web component.
- Left
- Places the caption to the left of the Web component when the orientation
is specified as Left-to-right. If the orientation is Right-to-left,
the caption is placed to the right of the Web component.
Events tab
- Events
- Choose any of the events in the list and use the JavaScript language
to code an action for that event in the Script field.
For example, if you select OnBlur , you might
code the script alert("not applicable");. For
a brief description of the events that apply to this Web component, see Web component events.
Styles tab
The Styles tab contains inline
style options for the
IBM i Web
component.
- Inline Style
- Select the Fonts, Font styles, Background
Color, and Text layout buttons to open
the respective style definition windows. Use each window to select the options
that you want to apply to the IBM i Web
component.