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