Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3893841
collapsible-checkbox-group.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
935 B
Referenced Files
None
Subscribers
None
collapsible-checkbox-group.ts
View Options
import
{
Context
}
from
"koa"
;
import
{
FlatTemplatable
}
from
"tempstream"
;
import
{
FormDataValue
,
FormMessage
}
from
"../form"
;
import
{
CheckboxWithValue
}
from
"./checkbox"
;
import
{
FieldGroup
,
FormFieldControl
}
from
"./controls"
;
import
{
CheckboxGroup
,
DefaultCheckboxOptions
}
from
"./checkbox-group"
;
import
{
CollapsibleFieldGroup
}
from
"./collapsible-field-group"
;
import
{
FormControlContext
}
from
"./form-control"
;
export
class
CollapsibleCheckboxGroup
extends
CheckboxGroup
<
DefaultCheckboxOptions
&
{
textWhenOpen
?:
string
;
textWhenClosed
?:
string
;
groupID
?:
string
;
}
>
{
wrapGroup
(
fctx
:
FormControlContext
,
checkboxes
:
CheckboxWithValue
[]
)
:
Promise
<
FlatTemplatable
>
{
return
new
CollapsibleFieldGroup
(
checkboxes
,
{
label
:
this
.
options
.
label
,
textWhenOpen
:
this
.
options
.
textWhenOpen
,
textWhenClosed
:
this
.
options
.
textWhenClosed
,
groupID
:
this
.
options
.
groupID
,
}).
render
(
fctx
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, May 19, 00:56 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
661835
Default Alt Text
collapsible-checkbox-group.ts (935 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment