Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1262211
hidden-input.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
650 B
Referenced Files
None
Subscribers
None
hidden-input.ts
View Options
import
{
Context
}
from
"koa"
;
import
{
FlatTemplatable
,
tempstream
}
from
"tempstream"
;
import
{
FormField
}
from
"../fields/field"
;
import
{
FormDataValue
}
from
"../form"
;
import
{
FormFieldControl
}
from
"./form-field-control"
;
export
class
HiddenInput
extends
FormFieldControl
{
constructor
(
public
field
:
FormField
,
public
value
:
FlatTemplatable
)
{
super
([
field
]);
}
async
render
(
ctx
:
Context
,
data
:
Record
<
string
,
FormDataValue
>
)
:
Promise
<
FlatTemplatable
>
{
const
{
raw
}
=
await
this
.
field
.
getValue
(
ctx
,
data
);
return
tempstream
`<input type="hidden" name="
${
this
.
field
.
name
}
" value="
${
(
raw
||
""
).
toString
()
}
">`
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Thu, Jan 23, 19:19 (16 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
601498
Default Alt Text
hidden-input.ts (650 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment