/ widget.py / pwText
- Text widget class
- Text widget that derives from pwThreeColumn so inherits all pwThreeColumn keywords. Also passes
keyword list for content widget, which is pwTextInput in this case
Arguments:
- obj: the object that contains the attribute associated with this field
- attr: the name of the attribute
Common Keywords:
- divClass: allows the user to override the class of the
- fieldSpecial: allows the user to add "special" HTML attributes to the output element
- id: overrides the HTML "id" attribute
- selectable: controls whether this field is selectable or not
- inputType: mostly for internal use -- overrides the type designation in the output hidden fields
pwThreeColumn Keywords:
- caption: the caption to be displayed in the "caption" area of the three columns. This may be
either text or a widget.
- help: help HREF associated with the caption
- example: the example to be displayed in the "example" area of the three columns. This may be either
text or a widget.
- layout: directs which layout approach to take: pure css or table + css
- layoutID: the ID to associate with the layout. Allows for different ID's between layout and content widgets.
- idArg: overrides the widget id
- visibility: is this widget visible? Used to allow content to "appear" depending on the action of other widgets.
pwTextInput Keywords:
- length: the default length of the text field
- maxlength: the maximum length of the text field
- type: the type of the text field (text or password)
Default divClass: pwText
Methods
|
|
|
__init__
|
__init__ (
self,
obj,
attr,
**kwlist,
)
|
|
|