akveo / akveo/ng2-smart-table

How to update the title of the custom action?

Đang mở
#815 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
867
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I have a need to multi select the row. For instance, user can select multiple rows, which should add to the new list when done and view that as a separate table. In order to do that, I need to have Add/Remove action at a time.

Initially, the user should be shown "Add" to all the rows, when user clicks the Add for any one row, then the title for that row should be updated to "Remove". And if "Remove" is clicked, the title should be "Add." Can someone tell me how I can achieve this? Below is what I have:

`settings = {
actions: {
add: false,
delete: false,
edit: false,
custom: [
{
name: 'add_remove',
title: 'Add'
}
]
},
columns: {
id: {
title: '#'
},
asset_id: {
title: 'Asset ID'
},
asset_name: {
title: 'Asset Name'
},
sub_portfolio: {
title: 'Sub-Portfolio'
},
portfolio: {
title: 'Portfolio'
}
}
};`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.