- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::formfield::radio
::xowiki::formfield::radio create ... \
[ -CSSclass (default "form-check") ]
Class Relations
- class: ::xotcl::Class
- superclass: ::xowiki::formfield::enumeration
- subclass: ::xowiki::formfield::boolean, ::xowiki::formfield::scale
::xotcl::Class create ::xowiki::formfield::radio \ -superclass ::xowiki::formfield::enumerationMethods (to be applied on instances)
CSSclass (setter)
forced_name (setter)
horizontal (setter)
initialize (scripted)
set :widget_type text(radio) set :multiple false nextrender_input (scripted)
set value [:value] set disabled_p [:is_disabled] lappend base_atts type radio name [expr {[info exists :forced_name] ? ${:forced_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 RADIO-ATTS=$atts if {$value eq $rep} { lappend atts checked checked } if {1 || ${:horizontal}} {lappend label_class [::template::CSS class radio-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)
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables