We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf34cb commit 12a15beCopy full SHA for 12a15be
docs/documentation/docs/controls/Placeholder.md
@@ -56,6 +56,21 @@ Sample of using the `hideButton` functionality for hiding the button when page i
56
theme={this.props.themeVariant} />
57
```
58
59
+Sample to only display `Placeholder` when the web part is in edit mode:
60
+
61
+```TypeScript
62
+{
63
+ this.displayMode === DisplayMode.Edit ?
64
+ <Placeholder iconName='Edit'
65
+ iconText='Configure your web part'
66
+ description='Please configure the web part.'
67
+ buttonLabel='Configure'
68
+ onConfigure={this._onConfigure}
69
+ theme={this.props.themeVariant} /> :
70
+ <div />
71
+}
72
+```
73
74
## Implementation
75
76
The placeholder control can be configured with the following properties:
0 commit comments