Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F1043376
NumberTextBox.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
NumberTextBox.js
View Options
if
(
!
dojo
.
_hasResource
[
"dijit.form.NumberTextBox"
]){
//_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo
.
_hasResource
[
"dijit.form.NumberTextBox"
]
=
true
;
dojo
.
provide
(
"dijit.form.NumberTextBox"
);
dojo
.
require
(
"dijit.form.ValidationTextBox"
);
dojo
.
require
(
"dojo.number"
);
dojo
.
declare
(
"dijit.form.NumberTextBoxMixin"
,
null
,
{
// summary:
// A mixin for all number textboxes
regExpGen
:
dojo
.
number
.
regexp
,
format
:
function
(
/*Number*/
value
,
/*Object*/
constraints
){
if
(
isNaN
(
value
)){
return
""
;
}
return
dojo
.
number
.
format
(
value
,
constraints
);
},
parse
:
dojo
.
number
.
parse
,
filter
:
function
(
/*Number*/
value
){
if
(
typeof
value
==
"string"
){
return
this
.
inherited
(
'filter'
,
arguments
);
}
return
(
isNaN
(
value
)
?
''
:
value
);
},
value
:
NaN
}
);
dojo
.
declare
(
"dijit.form.NumberTextBox"
,
[
dijit
.
form
.
RangeBoundTextBox
,
dijit
.
form
.
NumberTextBoxMixin
],
{
// summary:
// A validating, serializable, range-bound text box.
// constraints object: min, max, places
}
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 16, 06:25 (1 h, 56 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26589
Default Alt Text
NumberTextBox.js (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment