Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22396574
int.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
594 B
Referenced Files
None
Subscribers
None
int.ts
View Options
import
{
FormControlContext
}
from
"../controls/form-control.js"
;
import
{
NumberBasedSimpleField
}
from
"./simple-form-field.js"
;
export
class
Int
<
Required
extends
boolean
,
>
extends
NumberBasedSimpleField
<
Required
>
{
constructor
(
required
:
Required
)
{
super
(
required
,
"number"
);
}
async
getSealiousCreateValue
(
fctx
:
FormControlContext
)
:
Promise
<
number
|
undefined
>
{
const
{
parsed
}
=
await
this
.
getParsedValue
(
fctx
.
ctx
,
fctx
.
data
.
raw_values
);
if
(
parsed
==
null
)
{
return
undefined
;
}
if
(
isNaN
(
parsed
))
{
return
undefined
;
}
else
return
parsed
;
}
}
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 16:51 (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1200158
Default Alt Text
int.ts (594 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline