mdDataTable
mdDataTable copied to clipboard
is there a way I can edit the whole row i.e all the properties by clicking one edit button ?
is there a way I can edit the whole row i.e all the properties by clicking one edit button ?
@jpca999 thanks for the answer. Now I'm working on a different feature, there are many feature requests, this is one amongs them. The problem with it is that I don't know yet how it should work in design point of view.
- How should an editable row look like
- How should it work with different data types, should it handle different data types?
- What if a cell is an html content, etc...
There are many questions, you can help me figuring out what would be your way of doing that.
But stay sharp, I'll add it too soon.
@iamisti Maybe the user should create a custom template for editing a specific table row, and you could pass all the row data to that template, so you could have a modal containing the template with the requested properties to fill it in.
I would suggest that you pass all that properties within the template scope directly, maybe encapsulated in a "row" object, and inside it you have all the column keys as the property names ($scope.row.firstColumnKeyName), or if that is not possible, maybe row could be an array with positions where every position is a column ($scope.row[0]).
Also, make clientScope work here, for adding special actions, like print, delete, export, etc.
Wow I like your suggestion. Let's see how fast I can implement this. Thanks again!
@iamisti +1 👍🏼
Any progress on this request?
Lol - no longer using it.