Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010920
form-field-control.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
647 B
Referenced Files
None
Subscribers
None
form-field-control.ts
View Options
import
{
FlatTemplatable
}
from
"tempstream"
;
import
{
FormField
}
from
"../fields/field.js"
;
import
{
FieldValueType
}
from
"../form-types.js"
;
import
{
FormControl
,
FormControlContext
}
from
"./form-control.js"
;
export
type
FormFieldsToTypes
<
FormFields
extends
readonly
FormField
[]
>
=
{
[
Index
in
keyof
FormFields
]
:
FormFields
[
Index
]
extends
FormField
?
FieldValueType
<
FormFields
[
Index
]
>
:
never
;
};
export
abstract
class
FormFieldControl
extends
FormControl
{
role
=
<
const
>
"input"
;
constructor
(
public
fields
:
FormField
[])
{
super
();
}
abstract
render
(
fctx
:
FormControlContext
)
:
FlatTemplatable
|
Promise
<
FlatTemplatable
>
;
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:49 (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
625311
Default Alt Text
form-field-control.ts (647 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment