::xowiki::formfield::CompoundField ::xowiki::formfield::CompoundField get_named_sub_component_value json_value ::xowiki::formfield::FormField ::xowiki::formfield::FormField → fc_decode → fc_encode json_value ::xowiki::formfield::CompoundField->::xowiki::formfield::FormField ::xo::tdom::Object ::xo::tdom::Object ::xowiki::formfield::FormField->::xo::tdom::Object ::xowiki::formfield::repeatContainer ::xowiki::formfield::repeatContainer json_value ::xowiki::formfield::repeatContainer->::xowiki::formfield::CompoundField

Class ::xowiki::formfield::repeatContainer

::xowiki::formfield::repeatContainer[i] create ... \
           [ -max (default "5") ] \
           [ -min (default "1") ] \
           [ -repeat_add_label (default "#xowiki.form-repeatable-add#") ] \
           [ -repeat_remove_label (default "#xowiki.delete#") ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::CompoundField[i]

Methods (to be applied on instances)

  • json_value (scripted, public)

     <instance of xowiki::formfield::repeatContainer[i]> json_value \
        value

    Recursively export repeated occurrences as a JSON array in numeric occurrence order. Omit the occurrence-zero template and create field metadata for stored occurrences on demand. Invalid legacy values remain strings.

    Parameters:
    value (required)
    Stored dictionary of occurrence names and values.
    Returns:
    Two-element ns_json type/payload pair; array payloads contain triples.

    Testcases:
    No testcase defined.