Messagebox"
From Documentation
Tmillsclare (talk | contribs) m (Created page with 'init') |
|||
Line 1: | Line 1: | ||
− | + | {{ZKComponentReferencePageHeader}} | |
+ | |||
+ | = Messagebox = | ||
+ | |||
+ | *Demonstration: [http://www.zkoss.org/zkdemo/userguide/#l8 Messagebox] | ||
+ | *Java API: <javadoc>org.zkoss.zul.Messagebox</javadoc> | ||
+ | *JavaScript API: N/A | ||
+ | |||
+ | = Employment/Purpose = | ||
+ | |||
+ | It provides a set of utilities to show message boxes. | ||
+ | |||
+ | It is typically used to alert users when an error occurs, or to prompt user for an decision. | ||
+ | |||
+ | |||
+ | = Example = | ||
+ | |||
+ | <source lang="xml" > | ||
+ | <window title="Messagebox demo" border="normal"> | ||
+ | <button label="Question" width="100px"> | ||
+ | <attribute name="onClick">{ Messagebox.show("Question is pressed. Are | ||
+ | you sure?", "Question", Messagebox.OK | Messagebox.CANCEL, | ||
+ | Messagebox.QUESTION); }</attribute> | ||
+ | </button> | ||
+ | </window> | ||
+ | </source> | ||
+ | |||
+ | |||
+ | |||
+ | =Supported events= | ||
+ | |||
+ | {| border="1" | width="100%" | ||
+ | ! <center>Name</center> | ||
+ | ! <center>Event Type</center> | ||
+ | |- | ||
+ | | None | ||
+ | | None | ||
+ | |} | ||
+ | |||
+ | =Supported Children= | ||
+ | |||
+ | {| border="1" | width="100%" | ||
+ | ! <center>Name</center> | ||
+ | ! <center>Event Type</center> | ||
+ | |- | ||
+ | | None | ||
+ | | None | ||
+ | |} | ||
+ | |||
+ | =Use cases= | ||
+ | |||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Description !! Example Location | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | =Version History= | ||
+ | |||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | 5.0.2 | ||
+ | | 5/18/2010 | ||
+ | | Initialization | ||
+ | |} | ||
+ | |||
+ | {{ZKComponentReferencePageFooter}} |
Revision as of 04:59, 18 May 2010
Messagebox
- Demonstration: Messagebox
- Java API: Messagebox
- JavaScript API: N/A
Employment/Purpose
It provides a set of utilities to show message boxes.
It is typically used to alert users when an error occurs, or to prompt user for an decision.
Example
<window title="Messagebox demo" border="normal">
<button label="Question" width="100px">
<attribute name="onClick">{ Messagebox.show("Question is pressed. Are
you sure?", "Question", Messagebox.OK | Messagebox.CANCEL,
Messagebox.QUESTION); }</attribute>
</button>
</window>
Supported events
None | None |
Supported Children
None | None |
Use cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|
5.0.2 | 5/18/2010 | Initialization |