- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::formfield::CompoundField
::xowiki::formfield::CompoundField create ... \
[ -CSSclass (default "compound-field") ] \
[ -components (default "") ]
Defined in
Class Relations
- class: ::xotcl::Class
- superclass: ::xowiki::formfield::FormField
- subclass: ::xowiki::formfield::repeatContainer, ::xowiki::formfield::regression_test_mycompound, ::xowiki::formfield::text_fields, ::xowiki::formfield::regression_test_compound_with_repeat2, ::xowiki::formfield::mc_exercise, ::xowiki::formfield::date, ::xowiki::formfield::CalendarField, ::xowiki::formfield::repeattest, ::xowiki::formfield::mc_alternative, ::xowiki::formfield::FormGeneratorField, ::xowiki::formfield::regression_test_compound_with_repeat, ::xowiki::formfield::regression_test_compound_numeric, ::xowiki::formfield::comp_correct_when
Methods (to be applied on instances)
get_named_sub_component_value (scripted, public)
<instance of xowiki::formfield::CompoundField> get_named_sub_component_value \ [ -from_repeat ] [ -default default ] args [ args... ]Return the value of a named subcomponent. When the named subcomponent is a repeated item, and the value of the 0th element of the repeat (the template element) is omitted from the returned value.
- Switches:
- -from_repeat (optional)
- skip template element from repeated values
- -default (optional)
- default value, when component is not found
- Parameters:
- args (required)
- space separated path of elements names in a potentially nested component structure (similar to dict)
- Testcases:
- create_test_items
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables