Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1263182
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
803 B
Referenced Files
None
Subscribers
None
collapsible-checkbox-group.ts
View Options
import
{
FlatTemplatable
}
from
"tempstream"
;
import
{
CheckboxWithValue
}
from
"./checkbox.js"
;
import
{
CheckboxGroup
,
DefaultCheckboxOptions
}
from
"./checkbox-group.js"
;
import
{
CollapsibleFieldGroup
}
from
"./collapsible-field-group.js"
;
import
{
FormControlContext
}
from
"./form-control.js"
;
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
Fri, Jan 24, 16:50 (10 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
601642
Default Alt Text
collapsible-checkbox-group.ts (803 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment