- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::formfield::checkbox
::xowiki::formfield::checkbox create ... \
[ -CSSclass (default "form-check") ]
Class Relations
- class: ::xotcl::Class
- superclass: ::xowiki::formfield::enumeration
- subclass: ::xowiki::formfield::boolean_checkbox
::xotcl::Class create ::xowiki::formfield::checkbox \ -superclass ::xowiki::formfield::enumerationMethods (to be applied on instances)
CSSclass (setter)
horizontal (setter)
initialize (scripted)
set :multiple true set :widget_type text(checkbox) nextrender_input (scripted)
set value [:value] set disabled_p [:is_disabled] lappend base_atts type checkbox name ${:name} foreach o ${:options} label_class [:render_label_classes] description ${:descriptions} { lassign $o label rep set id ${:id}:$rep set atts [list {*}$base_atts id $id value $rep] if {$disabled_p} { lappend atts disabled true } #ns_log notice ATTS=$atts if {[string is list -strict $value] && $rep in $value} { lappend atts checked checked } if {1 || ${:horizontal}} {lappend label_class [::template::CSS class checkbox-inline]} ::html::label -for $id -class $label_class { ::html::input $atts {} :render_label_text $label $label_class $description } :render_result_statistics $rep if {!${:horizontal}} { html::br } } :handle_transmit_always $valuerichtext (setter)
td_pretty_value (scripted)
return $v
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables