AudioFileRepeater
- Component - simple
- Component - advanced
- API schema
<ImageFileRepeater
field="songs"
urlField="song.url"
label="Album"
sortableBy="order"
/>
<ImageFileRepeater
field="songs"
urlField="song.url"
label="Album"
description="song.description"
fileSizeField="song.size"
fileTypeField="song.type"
sortableBy="order"
>
<TextField field="song.description" label="Description" />
</ImageFileRepeater>
export class Album {
songs = def.oneHasMany(Song, "album");
}
export class Song {
order = def.intColumn().notNull();
url = def.stringColumn();
description = def.stringColumn();
height = def.stringColumn();
width = def.stringColumn();
size = def.stringColumn();
type = def.stringColumn();
album = def.manyHasOne(Album, "songs");
}