Skip to content

Commit

Permalink
Fix wrong directive names in action documentation
Browse files Browse the repository at this point in the history
Refs #739
  • Loading branch information
fzaninotto committed Oct 20, 2015
1 parent eb56249 commit 3b282b6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doc/Configuration-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,14 @@ Customize the list of actions for this view. You can pass a list of button names

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:

var template = '<show-button entry="entry" entity="entity" size="sm"></show-button>' +
'<delete-button entry="entry" entity="entity" size="sm"></delete-button>' +
var template = '<ma-show-button entry="entry" entity="entity" size="sm"></ma-show-button>' +
'<ma-delete-button entry="entry" entity="entity" size="sm"></ma-delete-button>' +
'<my-custom-directive entry="entry"></my-custom-directive>' +
'<back-button></back-button>';
'<ma-back-button></ma-back-button>';
editionView.actions(template);

Check the [Reusable Directives documentation](Configuration-reference.md) to get a list of ng-admin directives that you can use as actions.

* `disable()`
Disable this view. Useful e.g. to disable views that modify data and only leave the `listView` enabled

Expand Down Expand Up @@ -323,10 +325,12 @@ Add an action column with action buttons on each line. You can pass a list of bu

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 add custom actions on each line:

var template = '<show-button entry="entry" entity="entity" size="xs"></show-button>' +
var template = '<ma-show-button entry="entry" entity="entity" size="xs"></ma-show-button>' +
'<my-custom-directive entry="entry"></my-custom-directive>';
listView.listActions(template);

Check the [Reusable Directives documentation](Configuration-reference.md) to get a list of ng-admin directives that you can use as list actions.

* `batchActions(String|Array)`
Add your own batch action directives.

Expand Down

0 comments on commit 3b282b6

Please sign in to comment.