Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7188303
existing-sealious-value.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
532 B
Referenced Files
None
Subscribers
None
existing-sealious-value.ts
View Options
import
{
Field
}
from
"sealious"
;
import
{
PickFromListField
}
from
"./pick-from-list"
;
export
class
ExistingSealiousValue
<
Required
extends
boolean
>
extends
PickFromListField
<
Required
>
{
constructor
(
required
:
Required
,
field
:
Field
)
{
super
(
required
,
async
(
ctx
)
=>
{
const
{
items
}
=
await
field
.
collection
.
list
(
ctx
.
$context
).
fetch
();
return
Object
.
fromEntries
(
items
.
map
((
item
)
=>
{
const
value
=
item
.
get
(
field
.
name
);
return
[
value
,
value
];
})
);
});
}
getEmptyValue
()
{
return
""
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Jul 8, 08:06 (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
802634
Default Alt Text
existing-sealious-value.ts (532 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment