import * as React from 'react' ; import styles from './sharePointComponents.module.scss' ; import { FieldComponent , IFieldComponentProps , IFieldComponentState } from './FieldComponent' ; import { TextField } from 'office-ui-fabric-react' ; export interface IItemTextFieldEditorProps extends IFieldComponentProps { placeholder ? : string ; } export interface IItemTextFieldEditorState extends IFieldComponentState { } export default class ItemTextFieldEditor extends FieldComponent < IItemTextFieldEditorProps , IItemTextFieldEditorState > { public constructor ( props ) { super ( props ) ; } public render ( ) { return ( < div className = { styles . textFieldEditor } > < TextField value = { this . valueString } placeholder = { this . props . placeholder ? this . props . placeholder : "" } onChange = { this . _handleValueChanged } / > < /div>); } }