Skip to content
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

[crud] Enable configuration if deletion is allowed #1120

Open
Peppe opened this issue Mar 20, 2019 · 2 comments
Open

[crud] Enable configuration if deletion is allowed #1120

Peppe opened this issue Mar 20, 2019 · 2 comments
Labels
enhancement New feature or request vaadin-crud

Comments

@Peppe
Copy link
Contributor

Peppe commented Mar 20, 2019

In some cases, people have access to update existing items, but they are not allowed to delete them. For this, it would be great to have an API to disable the delete functionality.

@javier-godoy
Copy link
Contributor

As a workaround, you can set a theme on the Crud component (let's say "read-only"), and style the shadow dom of vaadin-dialog-overlay as:

 :host([theme~="read-only"]) vaadin-button:last-child {display:none}

@TatuLund
Copy link
Contributor

Enhanced CRUD adds getters for Buttons, so that you can set buttons disabled / hidden / change captions via Java API -> https://vaadin.com/directory/component/enhanced-crud/overview

@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-crud May 19, 2021
@vaadin-bot vaadin-bot added enhancement New feature or request vaadin-crud labels May 19, 2021
@web-padawan web-padawan changed the title Enable configuration if deletion is allowed [crud] Enable configuration if deletion is allowed May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vaadin-crud
Projects
None yet
Development

No branches or pull requests

4 participants