- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::formfield::number
::xowiki::formfield::number create ... \
[ -js_invalid_msg (default "") ] \
[ -js_validate (default "false") ] \
[ -max max ] \
[ -min min ] \
[ -step step ] \
[ -td_CSSclass (default "right") ] \
[ -value value ]
Class Relations
- class: ::xotcl::Class
- superclass: ::xowiki::formfield::FormField
- subclass: ::xowiki::formfield::grade_boundary
::xotcl::Class create ::xowiki::formfield::number \ -superclass ::xowiki::formfield::FormFieldMethods (to be applied on instances)
initialize (scripted)
:type number set :widget_type textjs_invalid_msg (setter)
js_validate (setter)
max (setter)
min (setter)
render_input (scripted)
set boolean_atts [:booleanAttributes required readonly disabled formnovalidate autofocus] ::html::input [:get_attributes type id name value {CSSclass class} min max step autocomplete placeholder {*}$boolean_atts] {} :resetBooleanAttributes $boolean_atts if {${:js_validate}} { set invalid_msg ${:js_invalid_msg} template::add_event_listener -event input -id ${:id} -script [subst { const inputField = event.target; if (!inputField.checkValidity()) { if ('$invalid_msg' != "") { inputField.setCustomValidity('$invalid_msg'); } } }] }step (setter)
td_CSSclass (setter)
value (setter)
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables