Skip to content

Commit

Permalink
Added info how to customize toolbarButtons in backend relations (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: bernd <[email protected]>
  • Loading branch information
skripteria and bernd authored Oct 6, 2021
1 parent 5ed03bc commit 4e4dfa2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backend-relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ An *Invoice* model with a relationship called `items` should define the first le
form: $/acme/pay/models/invoiceitem/fields.yaml
recordsPerPage: 10

You can also customize the labels of the toolbar buttons:

items:
label: Invoice Line Item
view:
list: $/acme/pay/models/invoiceitem/columns.yaml
toolbarButtons:
create: New MyLineItem
delete: Delete MyLineItem
manage:
form: $/acme/pay/models/invoiceitem/fields.yaml
recordsPerPage: 10


The following options are then used for each relationship name definition:

Option | Description
Expand Down

0 comments on commit 4e4dfa2

Please sign in to comment.