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

15 lines
548 B
TypeScript
Raw Normal View History

2020-10-19 14:48:21 +02:00
2021-12-21 13:58:48 +01:00
import { ZeroEditor } from '../../../editor/editor';
2021-12-22 10:55:40 +01:00
const editor = new ZeroEditor('languages');
2021-12-21 13:58:48 +01:00
editor.resourcePrefix = '@language.fields.';
2020-10-19 14:48:21 +02:00
2021-12-21 00:53:17 +01:00
//editor.blueprintAlias = 'languages';
2021-12-21 13:58:48 +01:00
editor.field('name', { label: '@ui.name' }).text({ maxLength: 60 });
editor.field('code').text({ maxLength: 5 });
editor.field('inheritedLanguageId', { optional: true }).languagePicker();
editor.field('isDefault', { optional: true, horizontal: true }).toggle();
editor.field('isOptional', { optional: true, horizontal: true }).toggle();
2020-10-19 14:48:21 +02:00
2021-12-21 13:58:48 +01:00
export default editor;