Class ::xowiki::formfield::number (public)
::xotcl::Class ::xowiki::formfield::number![[i]](/resources/acs-subsite/ZoomIn16.gif)
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::xowiki::formfield {}
::nsf::object::alloc ::xotcl::Class ::xowiki::formfield::number {set :__default_metaclass ::xotcl::Class
set :__default_superclass ::xotcl::Object}
::xowiki::formfield::number instproc initialize {} {
:type number
set :widget_type text
}
::xowiki::formfield::number instproc json_value value {
return [::xowiki::json_scalar number $value]
}
::xowiki::formfield::number instproc render_input {} {
set boolean_atts [:booleanAttributes required readonly disabled formnovalidate autofocus]
::html::input [:get_attributes type id name value {CSSclass class} min max step autocomplete placeholder {*}$boolean_atts] {}
:resetBooleanAttributes $boolean_atts
if {${:js_validate}} {
set invalid_msg ${:js_invalid_msg}
template::add_event_listener -event input -id ${:id} -script [subst {
const inputField = event.target;
if (!inputField.checkValidity()) {
if ('$invalid_msg' != "") {
inputField.setCustomValidity('$invalid_msg');
}
}
}]
}
}
::xowiki::formfield::number instparametercmd step
::xowiki::formfield::number instparametercmd min
::xowiki::formfield::number instparametercmd value
::xowiki::formfield::number instparametercmd js_invalid_msg
::xowiki::formfield::number instparametercmd td_CSSclass
::xowiki::formfield::number instparametercmd max
::xowiki::formfield::number instparametercmd js_validate
::nsf::relation::set ::xowiki::formfield::number superclass ::xowiki::formfield::FormField
::nx::slotObj -container slot ::xowiki::formfield::number
::xowiki::formfield::number::slot eval {set :__parameter {
min max step value
{js_validate false}
{js_invalid_msg ""}
{td_CSSclass right}
}}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::formfield::number::slot::js_validate {set :accessor public
set :configurable true
set :convert false
set :default false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::formfield::number
set :incremental 0
set :manager ::xowiki::formfield::number::slot::js_validate
set :methodname js_validate
set :multiplicity 1..1
set :name js_validate
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::formfield::number::slot::max {set :accessor public
set :configurable true
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::formfield::number
set :incremental 0
set :manager ::xowiki::formfield::number::slot::max
set :methodname max
set :multiplicity 1..1
set :name max
set :per-object false
set :position 0
set :required false
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::formfield::number::slot::td_CSSclass {set :accessor public
set :configurable true
set :convert false
set :default right
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::formfield::number
set :incremental 0
set :manager ::xowiki::formfield::number::slot::td_CSSclass
set :methodname td_CSSclass
set :multiplicity 1..1
set :name td_CSSclass
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::formfield::number::slot::min {set :accessor public
set :configurable true
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::formfield::number
set :incremental 0
set :manager ::xowiki::formfield::number::slot::min
set :methodname min
set :multiplicity 1..1
set :name min
set :per-object false
set :position 0
set :required false
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::formfield::number::slot::step {set :accessor public
set :configurable true
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::formfield::number
set :incremental 0
set :manager ::xowiki::formfield::number::slot::step
set :methodname step
set :multiplicity 1..1
set :name step
set :per-object false
set :position 0
set :required false
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::formfield::number::slot::js_invalid_msg {set :accessor public
set :configurable true
set :convert false
set :default {}
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::formfield::number
set :incremental 0
set :manager ::xowiki::formfield::number::slot::js_invalid_msg
set :methodname js_invalid_msg
set :multiplicity 1..1
set :name js_invalid_msg
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::formfield::number::slot::value {set :accessor public
set :configurable true
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::formfield::number
set :incremental 0
set :manager ::xowiki::formfield::number::slot::value
set :methodname value
set :multiplicity 1..1
set :name value
set :per-object false
set :position 0
set :required false
set :trace none
: init}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]