VideoFileRepeater
- Component - simple
- Component - advanced
- API schema
<VideoFileRepeater
field="videos"
urlField="video.url"
label="Video serie"
sortableBy="order"
/>
<VideoFileRepeater
field="videos"
urlField="video.url"
label="Video serie"
description="video.description"
fileSizeField="video.size"
fileTypeField="video.type"
sortableBy="order"
>
<TextField field="video.description" label="Description" />
</VideoFileRepeater>
export class VideoSerie {
videos = def.oneHasMany(Video, "serie");
}
export class Video {
order = def.intColumn().notNull();
url = def.stringColumn();
description = def.stringColumn();
size = def.stringColumn();
type = def.stringColumn();
serie = def.manyHasOne(VideoSerie, "videos");
}