Open jeromethibault opened 7 years ago
settings = { actions: false, pager: { display: true, perPage: 14 }, selectMode: 'multi', //to add multi row check box's columns: {
how to do bulk action in ng2 smart table
hi anyone please help me for a bulk action in ng2 smart table my source is . settings = {
selectMode : 'multi',
mode: 'external',
columns: {
name: {
title: 'Name',
},
branch_name: {
title: 'Branch',
},
ifsc: {
title: 'IFSC',
width:'15%',
},
status_name: {
title: 'Status',
},
},
actions: {
columnTitle: 'Actions',
add: false,
edit: true,
delete: true,
position: 'right',
},
pager: {
display: true,
perPage: 10,
},
edit: {
editButtonContent: '<img src="img/edit.png"/>'
},
delete: {
deleteButtonContent: '<img src="img/delete.png"/>'
},
@jeevitha8123 ,
Looks like you have the select boxes set up. Now you just need to use (userRowSelect)="userSelectRows($event.selected)"
in
userSelectRows(selectedList) { this.selected = selectedList; }
Then make a button that calls a function that does something with the list.
Hi guys.
Regarding title of the issue, I guess mine goes here.
I got a custom column using custom cell components and it works great but I need to set as title of the column a checkbox instead of a text.
Actually, I could use directly the existing component of CheckboxSelectAllComponent, but I'm not able to figure out how.
Some help would be highly appreciated!
I find this component in the repository : ng2-smart-table/src/ng2-smart-table/components/thead/cells/checkbox-select-all.component.ts
But i don't figure out how to use it. Does anyone have an idea ?