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

[Example] Add custom toolbar action to list view #81

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niklasnatter
Copy link
Contributor

@niklasnatter niklasnatter commented Nov 2, 2020

What's in this PR?

This PR demonstrates how to add a custom toolbar action to a list view of the administration interface of Sulu. The example adds a simple app.alert_names toolbar action that outputs the names of the selected contacts to the contact list view.

Screenshot 2020-10-07 at 15 07 10

To apply the changes, the administration frontend application needs to be rebuilt by executing bin/console sulu:admin:update-build.

@niklasnatter niklasnatter added the Example Example implementations label Nov 2, 2020
return {
type: 'button',
label: translate('app.alert_names'),
icon: 'su-bell',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Available icons are documented in the Sulu Javascript Docs.

@niklasnatter niklasnatter force-pushed the example/custom-list-toolbar-action branch from 7f353f5 to 72deaa2 Compare June 20, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Example Example implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant