@tomino/dynamic-form-semantic-ui
Version:
Semantic UI form renderer based on dynamic form generation
41 lines • 2.14 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const segment_view_1 = require("./segment_view");
const editor_common_1 = require("../editor/editor_common");
const enums_1 = require("./enums");
const mobx_react_1 = require("mobx-react");
exports.SegmentEditor = {
Component: mobx_react_1.observer(segment_view_1.SegmentView),
title: 'Segment',
control: 'Segment',
icon: 'window maximize outline',
props: {
...editor_common_1.propGroup('Segment', {
attached: editor_common_1.boundProp({
$enum: [{ value: 'top', text: 'top' }, { value: 'bottom', text: 'bottom' }]
}),
basic: editor_common_1.boundProp({ type: 'boolean' }),
circular: editor_common_1.boundProp({ type: 'boolean' }),
clearing: editor_common_1.boundProp({ type: 'boolean' }),
color: editor_common_1.boundProp({ $enum: enums_1.colors }),
compact: editor_common_1.boundProp({ type: 'boolean' }),
disabled: editor_common_1.boundProp({ type: 'boolean' }),
floated: editor_common_1.boundProp({
$enum: [{ value: 'left', text: 'left' }, { value: 'right', text: 'right' }]
}),
inverted: editor_common_1.boundProp({ type: 'boolean' }),
loading: editor_common_1.boundProp({ type: 'boolean' }),
padded: editor_common_1.boundProp({ type: 'boolean' }),
piled: editor_common_1.boundProp({ type: 'boolean' }),
placeholder: editor_common_1.boundProp({ type: 'boolean' }),
raised: editor_common_1.boundProp({ type: 'boolean' }),
secondary: editor_common_1.boundProp({ type: 'boolean' }),
size: editor_common_1.boundProp({ $enum: enums_1.sizes }),
stacked: editor_common_1.boundProp({ type: 'boolean' }),
tertiary: editor_common_1.boundProp({ type: 'boolean' }),
textAlign: editor_common_1.boundProp({ $enum: enums_1.align }),
vertical: editor_common_1.boundProp({ type: 'boolean' })
})
}
};
//# sourceMappingURL=segment_editor.js.map