ImageFileRepeater
- Component - simple
- Component - advanced
- API schema
<ImageFileRepeater
field="images"
urlField="image.url"
label="Gallery"
sortableBy="order"
/>
<ImageFileRepeater
field="images"
urlField="image.url"
label="Gallery"
description="image.description"
heightField="image.height"
widthField="image.width"
fileSizeField="image.size"
fileTypeField="image.type"
sortableBy="order"
>
<TextField field="image.description" label="Description" />
<TextField field="image.alt" label="Alternative text" />
</ImageFileRepeater>
export class Gallery {
images = def.oneHasMany(Image, "gallery");
}
export class Image {
order = def.intColumn().notNull();
url = def.stringColumn();
description = def.stringColumn();
height = def.stringColumn();
width = def.stringColumn();
size = def.stringColumn();
type = def.stringColumn();
gallery = def.manyHasOne(Gallery, "images");
}