Skip to content

Comments

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

Draft
niklasnatter wants to merge 1 commit intomasterfrom
example/custom-list-toolbar-action
Draft

[Example] Add custom toolbar action to list view#81
niklasnatter wants to merge 1 commit intomasterfrom
example/custom-list-toolbar-action

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