Skip to content

Commit

Permalink
Merge pull request marmelab#1344 from marmelab/listview-actions-doc
Browse files Browse the repository at this point in the history
[RFR] Improve list view actions documentation
  • Loading branch information
ThieryMichel authored May 22, 2017
2 parents c4f3667 + 74886bb commit 45bbb81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/reference/View.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ The title of the view. ng-admin sees it as a template, and compiles it with the
A text displayed below the title. Like the `title` ng-admin sees it as a template and it can be customized in the same way.

* `actions(String|Array)`
Customize the list of actions for this view. You can pass a list of button names among 'back', 'list', 'show', create', 'edit', 'delete', 'batch', and 'export':
Customize the list of actions for this view. You can pass a list of button names among 'back', 'list', 'filter', 'show', 'create', 'edit', 'delete', 'batch', and 'export':

editionView.actions(['show', 'list', 'delete']);
// By default, it is:
editionView.actions(['filter', 'create', 'export']);

Alternately, if you pass a string, it is compiled just like an Angular template, with access to the current `entry` in the scope. This allows to easily add custom actions, or customize the buttons appearance:

Expand Down

0 comments on commit 45bbb81

Please sign in to comment.