I am using ng2-smart-table in my angular6 project. How to disable edit and delete for particular rows in ng2-smart table angular6
Asked
Active
Viewed 431 times
1 Answers
1
Just add the actions.edit and actions.delete table properties to the settings and set them to false, something like below:
settings = {
actions: {
edit: false,
delete: false
}
}
You can check out other table properties/configuration here

Ian Preglo
- 421
- 2
- 10
-
I would like to disable the edit and delete button for the first four rows of the table and if I add a new record it should come with edit and delete button – Robot Apr 12 '19 at 12:36
-
you can use `document.querySelector` to get the particular element or add a specific class to your edit action to make it easier for you to retrieve the element and apply a class to it. Unfortunately i have no ideas for an easier way to do it. – Ian Preglo Apr 12 '19 at 12:52