Textbox

From UG

(Difference between revisions)
Jump to: navigation, search
(Intro)
(Template)
 
(34 intermediate revisions not shown)
Line 1: Line 1:
-
[[Category:UI]]
+
[[Category:Widgets]]
== Intro ==
== Intro ==
-
[[Media:http://docs.zkoss.org/wiki/Image:Textbox.png]]
+
Frequently used UI control.
-
Easily most used UI control.
+
Used to enter text on forms.
-
== Attributes ==
+
== Major Functional Attributes ==
-
=== value ===
+
=== datatype/format ===
-
=== type ===
+
See [[Datatypes]].
-
=== constraint ===
+
=== validation ===
 +
 
 +
see [[Validation]]
 +
 
 +
=== readonly ===
 +
 
 +
Values: Y, N.
 +
 
 +
=== default ===
 +
 
 +
Values:
 +
* blank
 +
* constant
 +
* value that comes from DB or memory
 +
 
 +
== Look and Feel attributes ==
=== width ===
=== width ===
-
width="50px"
+
Defines how wide is a textbox on the screen.
-
== Links ==
+
Most of the times it is defined in number of chars (ZK '''cols''' attribute). But it could be also defined in pixels (ZK '''width''' attribute).
 +
 
 +
This is actually almost only style / layout issue, could be defined in Style section. So in this case link should be provided instead of repeating definition.
 +
 
 +
 
 +
 
 +
 
 +
== Template ==
 +
 
 +
:: ''default:''  blank, from DB, etc
 +
:: ''datatype/format/Biz Obj:'' [[Datatypes#TBD]] or link to ''Business Object'' wiki
 +
 
 +
:: ''required:''        N, Y
 +
:: ''validation type:'' [[Validation#zk_standard]], [[Validation#on submit]], [[Validation#ststus line]]
 +
:: ''readonly:''        N, Y
 +
 
 +
== See also ==
 +
 
 +
* http://en.wikipedia.org/wiki/Text_box
* [http://docs.zkoss.org/wiki/Developer_reference_The_XUL_Components_Components_Textbox  In zk ref]
* [http://docs.zkoss.org/wiki/Developer_reference_The_XUL_Components_Components_Textbox  In zk ref]
* [http://www.zkoss.org/zkdemo/userguide/#f2  In Demo]
* [http://www.zkoss.org/zkdemo/userguide/#f2  In Demo]
 +
 +
* see also http://docs.zkoss.org/wiki/Developer_reference_The_XUL_Components_Overview_InputElement
 +
 +
== Figures ==
 +
=== Fig 1 ===
 +
[[File:Textbox.png]]

Current revision as of 20:41, 22 February 2010


Contents

[edit] Intro

Frequently used UI control.

Used to enter text on forms.

[edit] Major Functional Attributes

[edit] datatype/format

See Datatypes.

[edit] validation

see Validation

[edit] readonly

Values: Y, N.

[edit] default

Values:

  • blank
  • constant
  • value that comes from DB or memory

[edit] Look and Feel attributes

[edit] width

Defines how wide is a textbox on the screen.

Most of the times it is defined in number of chars (ZK cols attribute). But it could be also defined in pixels (ZK width attribute).

This is actually almost only style / layout issue, could be defined in Style section. So in this case link should be provided instead of repeating definition.



[edit] Template

default: blank, from DB, etc
datatype/format/Biz Obj: Datatypes#TBD or link to Business Object wiki
required: N, Y
validation type: Validation#zk_standard, Validation#on submit, Validation#ststus line
readonly: N, Y

[edit] See also

[edit] Figures

[edit] Fig 1

File:Textbox.png

Personal tools