marmelab / ng-admin

Add an AngularJS admin GUI to any RESTful API
http://ng-admin-book.marmelab.com/
MIT License
3.95k stars 728 forks source link

batch actions doesn't appear on selection if we use .actions to a listView #1396

Open rajprashanthr opened 4 years ago

rajprashanthr commented 4 years ago

I use custom actions to a listview with '.actions' . When I do it, the default batch actions options doesn't appear. Even if i use just .actions() on the listView the batch actions do not appear.

customer.listView().title('Customer Master').fields([ nga.field('companyName').label("Company Name").cssClasses("companyNameLink").isDetailLink(true), nga.field('customerId').label("").cssClasses("hide customerIdInp"), nga.field("city").label("City"), nga.field("industrySegmentName").label("Industry Segment"), nga.field("regionName").label("Region") ]) .filters([nga.field('companyName').label('Search').pinned(true)]) .listActions(LIST_ACTIONS) .actions(['

', 'Export', 'create']) .batchActions(['delete']);