Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: allow to prevent creating default slotted buttons #7181

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

web-padawan
Copy link
Member

Description

Part of vaadin/flow-components#6080

This PR adds a flag that can be set by the Flow counterpart in the Crud constructor like this:

getElement().setProperty("_noDefaultButtons", true);

As a result, the web component will not create default buttons and expect the server to provide them.
To do this, we set tagName in SlotController constructor to null (see e.g. HelperController).

Type of change

  • Bugfix

@web-padawan web-padawan force-pushed the fix/crud-no-default-buttons branch from 7277353 to cdf6b0f Compare March 8, 2024 10:33
Copy link

sonarqubecloud bot commented Mar 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@web-padawan web-padawan merged commit c0ada90 into main Mar 11, 2024
9 checks passed
@web-padawan web-padawan deleted the fix/crud-no-default-buttons branch March 11, 2024 11:00
web-padawan added a commit that referenced this pull request Mar 11, 2024
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
web-padawan added a commit that referenced this pull request Mar 11, 2024
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.4.0.alpha15 and is also targeting the upcoming stable 24.4.0 version.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants