- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::formfield::numeric
::xowiki::formfield::numericcreate ... \
[ -connection_locale (default "1") ] \
[ -format (default "%.2f") ] \
[ -keep_string_rep (default "0") ] \
[ -strict (default "0") ]
Defined in
Class Relations
- class: ::xotcl::Class
- superclass: ::xowiki::formfield::text
- subclass: ::xowiki::formfield::user_id
, ::xowiki::formfield::YYYY
Methods (to be applied on instances)
answer_check=eq (scripted)
check=numeric (scripted)
connection_locale (setter)
convert_to_external (scripted)
convert_to_internal (scripted)
convert_to_internal_value (scripted)
format (setter)
initialize (scripted)
json_value (scripted, public)
<instance of xowiki::formfield::numeric> json_value value
Export a normalized numeric value, or preserve a nonempty string when keep_string_rep is enabled. Empty values are exported as null.
- Parameters:
- value (required)
- Stored numeric field value.
- Returns:
- Two-element ns_json type/payload pair.
- Testcases:
- No testcase defined.
keep_string_rep (setter)
pretty_value (scripted)
render_input (scripted)
strict (setter)
validator (setter)
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
![[i]](/resources/acs-subsite/ZoomIn16.gif)