import * as React from 'react' ; import PropertyFieldHeader from '../../common/propertyFieldHeader/PropertyFieldHeader' ; import { IPropertyFieldTextWithCalloutHostProps } from './IPropertyFieldTextWithCalloutHost' ; import * as telemetry from '../../common/telemetry' ; import { TextField } from 'office-ui-fabric-react/lib/components/TextField' ; import omit from 'lodash/omit' ; export default class PropertyFieldTextWithCalloutHost extends React . Component < IPropertyFieldTextWithCalloutHostProps , null > { constructor ( props ) { super ( props ) ; telemetry . track ( 'PropertyFieldTextWithCallout' , { disabled : props . disabled } ) ; } public render ( ) { return ( < div > < PropertyFieldHeader { ... this . props } / > < TextField { ... omit ( this . props , [ 'label' ] ) } onChange = { ( event , newValue ) => { if ( this . props . onChanged ) { this . props . onChanged ( newValue ) ; } } } /> < /div>); } }