UNPKG

@handie/squirtle

Version:

Widgets for Handie-React

11 lines (10 loc) 619 B
import { jsx as _jsx } from "react/jsx-runtime"; import { getControl } from 'handie-react'; import { StringFieldStructuralWidget } from 'handie-react/dist/widgets/class'; import { getStringInputtableControlProps } from '../../../../utils'; export default class InputEditStringFieldWidget extends StringFieldStructuralWidget { render() { const TextInput = getControl('TextInput'); return TextInput ? (_jsx(TextInput, Object.assign({}, getStringInputtableControlProps(this), { prefix: this.config.prefix, suffix: this.config.suffix, onInput: value => this.onChange(value) }), void 0)) : null; } }