New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder: Add a property to hide the button on view mode #206

Closed
estruyf opened this Issue Dec 20, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@estruyf
Copy link
Collaborator

estruyf commented Dec 20, 2018

Category

[x] Enhancement
[ ] Bug
[ ] Question

Version

Please specify what version of the library you are using: [latest]

Expected / Desired Behavior / Question

Add a property to specify if the placeholder button is hidden on page view mode.

estruyf added a commit that referenced this issue Dec 20, 2018

@estruyf estruyf added this to the 1.11.0 milestone Dec 20, 2018

@estruyf

This comment has been minimized.

Copy link
Collaborator

estruyf commented Dec 20, 2018

Newly introduced property hideButton is available in the latest beta.

Sample usage:

<Placeholder iconName='Edit'
                     iconText='Configure your web part'
                     description='Please configure the web part.'
                     buttonLabel='Configure'
                     hideButton={this.props.displayMode === DisplayMode.Read}
                     onConfigure={this._onConfigure} />

read-mode-hide-button

@estruyf

This comment has been minimized.

Copy link
Collaborator

estruyf commented Dec 21, 2018

This has been released with the latest 1.11.0 version.

@estruyf estruyf closed this Dec 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment