::xowiki::formfield::FormField ::xowiki::formfield::FormField → fc_decode → fc_encode json_value ::xo::tdom::Object ::xo::tdom::Object ::xowiki::formfield::FormField->::xo::tdom::Object ::xo::tdom::AttributeManager ::xo::tdom::AttributeManager ::xo::tdom::Object->::xo::tdom::AttributeManager ::xo::OrderedComposite ::xo::OrderedComposite ::xo::tdom::Object->::xo::OrderedComposite ::xowiki::formfield::boolean_image ::xowiki::formfield::boolean_image json_value ::xowiki::formfield::boolean_image->::xowiki::formfield::FormField

Class ::xowiki::formfield::boolean_image

::xowiki::formfield::boolean_image[i] create ... \
           [ -CSSclass (default "img_boolean") ] \
           [ -default (default "t") ] \
           [ -f_img_url (default "/resources/xowiki/examples/check_falsch.png") ] \
           [ -t_img_url (default "/resources/xowiki/examples/check_richtig.png") ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::FormField[i]
::xotcl::Class create ::xowiki::formfield::boolean_image \
     -superclass ::xowiki::formfield::FormField

Methods (to be applied on instances)

  • json_value (scripted, public)

     <instance of xowiki::formfield::boolean_image[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]