Files
mixtape/zero.Backoffice.UI/app/modules/media/schemas/editor.ts
T

14 lines
547 B
TypeScript
Raw Normal View History

2021-12-16 00:19:51 +01:00
import { ZeroEditor } from '../../../editor/editor';
import MetadataEditor from '../pages/detail/metadata.vue';
2021-12-16 00:19:51 +01:00
const editor = new ZeroEditor(); //('media:edit', '@media.fields.');
editor.resourcePrefix = '@media.fields.';
2021-12-21 00:53:17 +01:00
//editor.blueprintAlias = 'media';
2021-12-16 00:19:51 +01:00
editor.field('name', { label: '@ui.name' }).text();
editor.field('imageMeta.alternativeText', { optional: true, hidden: x => x.imageMeta }).text();
editor.field('caption').textarea();
editor.field('createdDate', { hideLabel: true }).component(MetadataEditor);
2021-12-16 00:19:51 +01:00
export default editor;