Class ::xowiki::formfield::numeric (public)

 ::xotcl::Class ::xowiki::formfield::numeric[i] [ -format format ] \
    [ -connection_locale connection_locale ] [ -strict strict ] \
    [ -keep_string_rep keep_string_rep ]

Defined in /var/www/openacs.org/packages/xowiki/tcl/form-field-procs.tcl

Field with numeric content. Depending on the format, the accepted value can be either an integer or a floating point number. The widget performs localization based on the setting of :locale. In case 'keep_string_rep' is not true, the widget converts the value to an internal representation to be able to evaluate numeric expressions by this. When 'keep_string_rep' is true, the original string representation is kept, and only validation is performed.

Switches:
-format (optional)
format for output and determining integer property
-connection_locale (optional)
when set, use the connection locale as source for internationalized input
-strict (optional)
when set, use just use the locale for input checking. Otherwise, always accept as fallback what is accepted by en_US.
-keep_string_rep (optional)
when true, do not convert from and to the internal representation, but preserve the original string.

Testcases:
No testcase defined.
[ show source ]
Show another procedure: