Class ::xowiki::formfield::mc_alternative
::xowiki::formfield::mc_alternative
create ... \
[ -feedback (default "full") ] \
[ -inplace (default "true") ]
Class Relations
- class: ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- superclass: ::xowiki::formfield::CompoundField
![[i]](/resources/acs-subsite/ZoomIn16.gif)
::xotcl::Class create ::xowiki::formfield::mc_alternative \
-superclass ::xowiki::formfield::CompoundField
Methods (to be applied on instances)
feedback (setter)
initialize (scripted)
:log "[self class] deprecated, you should switch to test-item procs"
if {${:__state} ne "after_specs"} return
if {0} {
set javascript [::xowiki::formfield::FormField fc_encode {
xinha_config.toolbar = [
['popupeditor', 'bold','italic','createlink','insertimage','separator'],
['killword','removeformat','htmlmode']
];
}]
set text_config [subst {editor=xinha,height=100px,label=Text,plugins=OacsFs,inplace=$:{inplace},javascript=$javascript}]
} else {
set text_config [subst {editor=wym,height=100px,label=Text}]
}
if {[:feedback] eq "full"} {
set feedback_fields {
{feedback_correct {textarea,label=Feedback korrekt}}
{feedback_incorrect {textarea,label=Feedback inkorrekt}}
}
} else {
set feedback_fields ""
}
:create_components [subst {
{text {richtext,$text_config}}
{correct {boolean,horizontal=true,label=Korrekt}}
$feedback_fields
}]
set :__initialized 1inplace (setter)