Files
mixtape/zero.Web.UI/app/renderers/editors/translation.js
T
2021-11-16 15:03:24 +01:00

18 lines
441 B
JavaScript

import Editor from 'zero/core/editor.ts';
const editor = new Editor('translation', '@translation.fields.');
editor.blueprintAlias = 'translation';
editor.fieldset(set =>
{
set.field('key').text(300).required();
set.field('display').state([
{ label: '@translation.display.text', value: 'text' },
{ label: '@translation.display.html', value: 'html' }
]);
});
editor.field('value').rte().required();
export default editor;