::xowiki::formfield::FormField ::xowiki::formfield::FormField → fc_decode → fc_encode json_value ::xo::tdom::Object ::xo::tdom::Object ::xowiki::formfield::FormField->::xo::tdom::Object ::xowiki::formfield::number ::xowiki::formfield::number json_value ::xowiki::formfield::number->::xowiki::formfield::FormField ::xowiki::formfield::grade_boundary ::xowiki::formfield::grade_boundary ::xowiki::formfield::grade_boundary->::xowiki::formfield::number

Class ::xowiki::formfield::number

::xowiki::formfield::number[i] create ... \
           [ -js_invalid_msg (default "") ] \
           [ -js_validate (default "false") ] \
           [ -max max ] \
           [ -min min ] \
           [ -step step ] \
           [ -td_CSSclass (default "right") ] \
           [ -value value ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::FormField[i]
  • subclass: ::xowiki::formfield::grade_boundary[i]

Methods (to be applied on instances)

  • json_value (scripted, public)

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

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

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

    Testcases:
    No testcase defined.