::xowiki::formfield::boolean_checkbox ::xowiki::formfield::boolean_checkbox json_value ::xowiki::formfield::checkbox ::xowiki::formfield::checkbox ::xowiki::formfield::boolean_checkbox->::xowiki::formfield::checkbox ::xowiki::formfield::enumeration ::xowiki::formfield::enumeration scores ::xowiki::formfield::checkbox->::xowiki::formfield::enumeration ::xowiki::formfield::ShuffleField ::xowiki::formfield::ShuffleField ::xowiki::formfield::enumeration->::xowiki::formfield::ShuffleField

Class ::xowiki::formfield::boolean_checkbox

::xowiki::formfield::boolean_checkbox[i] create ... \
           [ -default (default "t") ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::checkbox[i]
::xotcl::Class create ::xowiki::formfield::boolean_checkbox \
     -superclass ::xowiki::formfield::checkbox

Methods (to be applied on instances)

  • json_value (scripted, public)

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

    Export a boolean, mapping an empty value to null and preserving invalid nonempty values as strings.

    Parameters:
    value (required)
    Stored boolean field value.
    Returns:
    Two-element ns_json type/payload pair.

    Testcases:
    No testcase defined.
    return [::xowiki::json_scalar boolean $value]