Skip to content

Commit 74886bb

Browse files
authored
Improve list view actions documentation
Fix #1338
1 parent c4f3667 commit 74886bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/reference/View.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ The title of the view. ng-admin sees it as a template, and compiles it with the
3434
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.
3535

3636
* `actions(String|Array)`
37-
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':
37+
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':
3838

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

4143
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:
4244

0 commit comments

Comments
 (0)