Use the Button Web component to provide a form button to your
user. Form buttons can be used to submit a form, or reset a form to its original
values.
General tab (iwcl:WButton)
- 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.
- 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.
- Button type
- Available button types are Submit, Reset and Button.
- Submit
- Indicates that the submit action is associated with the button.
- Reset
- Indicates that the reset action is associated with the button. All fields
and controls are set back to their initial state.
- Button
- Defines a regular push button that does not submit or reset a form.
- 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.
- 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.
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.