Spinner"

From Documentation
Line 3: Line 3:
 
= Spinner =
 
= Spinner =
  
*Demonstration: [http://www.zkoss.org/zkdemo/userguide/#f2 Spinner]
+
*Demonstration: [http://www.zkoss.org/zkdemo/input/form_sample Spinner]
 
*Java API: <javadoc>org.zkoss.zul.Spinner</javadoc>
 
*Java API: <javadoc>org.zkoss.zul.Spinner</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zul.inp.Spinner</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zul.inp.Spinner</javadoc>
 +
*Style Guide: [[ZK_Style_Guide/XUL_Component_Specification/Spinner | Spinner]]
  
 
= Employment/Purpose =
 
= Employment/Purpose =
Line 35: Line 36:
 
</source>
 
</source>
  
=Supported events=
+
=Supported Events=
  
 
{| border="1" | width="100%"
 
{| border="1" | width="100%"
Line 44: Line 45:
 
| None  
 
| None  
 
|}
 
|}
 +
*Inherited Supported Events: [[ZK_Component_Reference/Base_Components/NumberInputElement#Supported_Events | NumberInputElement]]
  
=Supported molds=
+
=Supported Molds=
 
Available molds of a component are defined in lang.xml embedded in zul.jar.
 
Available molds of a component are defined in lang.xml embedded in zul.jar.
 
{| border="1" | width="100%"
 
{| border="1" | width="100%"
Line 60: Line 62:
 
=Supported Children=
 
=Supported Children=
  
  *ALL
+
  *None
  
=Use cases=
+
=Use Cases=
  
 
{| border='1px' | width="100%"
 
{| border='1px' | width="100%"
Line 73: Line 75:
  
 
=Version History=
 
=Version History=
 
+
{{LastUpdated}}
 
{| border='1px' | width="100%"
 
{| border='1px' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content

Revision as of 10:58, 19 November 2010

Spinner

Employment/Purpose

An edit box for holding a constrained integer.

Example

ZKComRef Spinner.png

 <window title="Spinner" border="normal" width="150px">
     <spinner />
 </window>

In-place Editing

Fixed Width

<spinner width="100px" inplace="true" value="30" />

Dynamic Width

Because inplace editing function in ZK is pure client side action, so we can use client api to modify the width (server side do not need to know)

ZK Component Reference-Input-Spinner-inplace.jpg

<zk xmlns:c="client">
  <spinner inplace="true" value="240" width="30px" c:onFocus='this.setWidth("60px")' c:onBlur='this.setWidth("30px")' />
</zk>

Supported Events

Name
Event Type
None None

Supported Molds

Available molds of a component are defined in lang.xml embedded in zul.jar.

Name
Snapshot
default
Spinner mold default.png
rounded
Spinner mold rounded.png

Supported Children

*None

Use Cases

Version Description Example Location
     

Version History

Last Update : 2010/11/19


Version Date Content
     



Last Update : 2010/11/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.