UNPKG

plot-plan-designer

Version:

Design Editor Tools with React.js + ant.design + fabric.js

34 lines (33 loc) 1.15 kB
export default InputTemplate; declare class InputTemplate extends React.Component<any, any, any> { static propTypes: { defaultValue: PropTypes.Requireable<string>; value: PropTypes.Requireable<string>; width: PropTypes.Requireable<NonNullable<string | number>>; height: PropTypes.Requireable<NonNullable<string | number>>; showLineNumbers: PropTypes.Requireable<boolean>; newLineMode: PropTypes.Requireable<boolean>; disabled: PropTypes.Requireable<boolean>; onChange: PropTypes.Requireable<(...args: any[]) => any>; }; static defaultProps: { width: string; height: string; showLineNumbers: boolean; newLineMode: boolean; disabled: boolean; }; constructor(props: any); constructor(props: any, context: any); state: { text: any; }; componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: any): void; onChange: (value: any) => void; render(): JSX.Element; aceRef: ReactAce; } import React from 'react'; import ReactAce from 'react-ace'; import PropTypes from 'prop-types';