Skip to content

Toolbar renderer in AutoCrud #3997

@platosha

Description

@platosha

Describe your motivation

I would like to customize the toolbar in <AutoCrud> to add another button together (or in some cases instead) of the default New item button.

Describe the solution you'd like

A render prop option in AutoCrud that allows to provide custom contents to the toolbar and also render the default new item button there.

Describe alternatives you've considered

A slot property is a good candidate, but unfortunately less flexible in regards of the placement of the new item button vs other contents.

Additional context

https://vaadin.com/forum/t/autocrud-component-grid-refresh-issue-and-custom-toolbar-buttons/178472#p-306174-issue-2-adding-custom-buttons-to-auto-crud-toolbar-2

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthillaIssues related to Hilla

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions