@tomino/dynamic-form-semantic-ui
Version:
Semantic UI form renderer based on dynamic form generation
36 lines • 1.52 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const input_view_1 = require("./input_view");
const editor_common_1 = require("../editor/editor_common");
const enums_1 = require("./enums");
exports.InputEditor = {
Component: input_view_1.InputView.Component,
title: 'Input',
control: 'Input',
icon: 'square outline',
bound: true,
props: editor_common_1.propGroup('Input', {
fluid: editor_common_1.boundProp({ type: 'boolean' }),
focus: editor_common_1.boundProp({ type: 'boolean' }),
icon: editor_common_1.boundProp(),
iconPosition: editor_common_1.boundProp({
control: 'Select',
props: { options: [{ text: 'Left', value: 'left' }, { text: 'Right', value: 'right' }] }
}),
inverted: editor_common_1.boundProp({ type: 'boolean' }),
inputLabel: editor_common_1.boundProp(),
labelPosition: editor_common_1.boundProp({
control: 'Select',
props: { options: [{ text: 'Left', value: 'left' }, { text: 'Right', value: 'right' }] }
}),
loading: editor_common_1.boundProp({ type: 'boolean' }),
size: editor_common_1.boundProp({ control: 'Select', props: { options: enums_1.sizes } }),
transparent: editor_common_1.boundProp({ type: 'boolean' }),
value: editor_common_1.boundProp(),
placeholder: editor_common_1.boundProp()
}),
defaultProps: {
fluid: true
}
};
//# sourceMappingURL=input_editor.js.map