Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010281
form-header.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
434 B
Referenced Files
None
Subscribers
None
form-header.ts
View Options
import
{
FormControl
,
FormControlContext
}
from
"./form-control.js"
;
export
class
FormHeader
extends
FormControl
{
role
=
<
const
>
"decoration"
;
constructor
(
public
text
:
string
,
public
isVisible
:
(
fctx
:
FormControlContext
)
=>
Promise
<
boolean
>
=
async
()
=>
true
)
{
super
();
}
async
render
(
fctx
:
FormControlContext
)
{
const
isVsbl
=
await
this
.
isVisible
(
fctx
);
return
isVsbl
?
`<h2>
${
this
.
text
}
</h2>`
:
""
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:39 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
625794
Default Alt Text
form-header.ts (434 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment