Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created November 12, 2018 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/70a2e10008c65db69dbf31c152d3fe1a to your computer and use it in GitHub Desktop.
Save AsishP/70a2e10008c65db69dbf31c152d3fe1a to your computer and use it in GitHub Desktop.
public render(): React.ReactElement<IProps> {
return (
<div>
{
this.props.properties ? (
<TooltipHost content={this.props.tooltipMessage || strings.message}
id='pntp'
calloutProps={{ gapSpace: 0 }}
directionalHint={this.props.tooltipDirectional || DirectionalHint.leftTopEdge}>
{componentHTML}
</TooltipHost>
) : (
<div>
{componentHTML}
</div>
)
}
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment