Class ::xowiki::formfield::text
::xowiki::formfield::text
create ... \
[ -maxlength maxlength ] \
[ -size (default "80") ]
Class Relations
- class: ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- superclass: ::xowiki::formfield::FormField
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- subclass: ::xowiki::formfield::week
, ::xowiki::formfield::color
, ::xowiki::formfield::redirect
, ::xowiki::formfield::password
, ::xowiki::formfield::search
, ::xowiki::formfield::time
, ::xowiki::formfield::test_item_name
, ::xowiki::formfield::email
, ::xowiki::formfield::numeric
, ::xowiki::formfield::datetime
, ::xowiki::formfield::h5date
, ::xowiki::formfield::h5time
, ::xowiki::formfield::youtube_url
, ::xowiki::formfield::image_url
, ::xowiki::formfield::url
, ::xowiki::formfield::tel
, ::xowiki::formfield::datetime-local
, ::xowiki::formfield::include
, ::xowiki::formfield::localized_text
, ::xowiki::formfield::correct_when![[i]](/resources/acs-subsite/ZoomIn16.gif)
::xotcl::Class create ::xowiki::formfield::text \
-superclass ::xowiki::formfield::FormField
Methods (to be applied on instances)
add_statistics (scripted)
next
if {[dict exists $options word_statistics]} {
:word_statistics [dict get $options word_statistics]
}initialize (scripted)
:type text
set :widget_type text
foreach p [list size maxlength] {
if {[info exists :$p]} {
set :html($p) [:$p]
}
}is_clock_string_p (scripted)
if {$value eq ""} {
return 1
}
foreach f $formats {
try {
clock scan $value -format $f
} on error {errmsg} {
ns_log notice "text instproc is_clock_string_p" "'$value' is not in clock format '$f'"
} on ok {d} {
return 1
}
}
return 0maxlength (setter)
render_input (scripted)
if {[:is_disabled] && [info exists :disabled_as_div]} {
:render_disabled_as_div text
} else {
next
}size (setter)