Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22396721
multiple-files.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
554 B
Referenced Files
None
Subscribers
None
multiple-files.ts
View Options
import
{
Context
}
from
"koa"
;
import
{
FieldTypes
as
SealiousFieldTypes
}
from
"sealious"
;
import
{
FormField
}
from
"./field.js"
;
export
class
MultipleFiles
extends
FormField
<
false
>
{
constructor
(
public
collection_field
:
SealiousFieldTypes
.
ReverseSingleReference
,
public
getItemId
:
(
ctx
:
Context
)
=>
Promise
<
string
>
|
string
)
{
super
(
false
);
}
getEmptyValue
()
{
return
undefined
;
}
async
parse
()
{
return
<
const
>
{
parsed_value
:
undefined
,
parsable
:
true
,
error
:
null
};
// the control is supposed to do the heavy lifting here
}
}
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 16:56 (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1200873
Default Alt Text
multiple-files.ts (554 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline