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