- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::formfield::text
::xowiki::formfield::text create ... \
[ -maxlength maxlength ] \
[ -size (default "80") ]
Class Relations
- class: ::xotcl::Class
- superclass: ::xowiki::formfield::FormField
- 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
::xotcl::Class create ::xowiki::formfield::text \ -superclass ::xowiki::formfield::FormFieldMethods (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)
# # Checks if a string is a valid clock string according to # specified formats. # # @see clock # # @return 1 or 0 # if {$value eq ""} { # # Empty values are fine here, the field may be optional. # 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)
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables