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