mdDataTable icon indicating copy to clipboard operation
mdDataTable copied to clipboard

is there a way I can edit the whole row i.e all the properties by clicking one edit button ?

Open PManager1 opened this issue 9 years ago • 6 comments

is there a way I can edit the whole row i.e all the properties by clicking one edit button ?

PManager1 avatar Oct 10 '16 14:10 PManager1

@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 avatar Oct 10 '16 17:10 iamisti

@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.

mateosss avatar Oct 19 '16 00:10 mateosss

Wow I like your suggestion. Let's see how fast I can implement this. Thanks again!

iamisti avatar Oct 19 '16 06:10 iamisti

@iamisti +1 👍🏼

PManager1 avatar Oct 20 '16 23:10 PManager1

Any progress on this request?

NBAMj avatar Apr 23 '17 07:04 NBAMj

Lol - no longer using it.

PManager1 avatar Apr 24 '17 15:04 PManager1