David-Mulder / paper-datatable

A material design implementation of a data table.
GNU General Public License v3.0
237 stars 92 forks source link

Allow adding rows #132

Open lomori opened 7 years ago

lomori commented 7 years ago

I couldn't find it and not sure if it's too hard but it would be great to allow adding new rows.

Regards, Luiz

dhrytsenko commented 7 years ago

Hi @lomori. You can easily to it by changing your dataSource by adding a new item to it and then refresh a data in table.

lomori commented 7 years ago

Thanks David. Well, I was thinking more in the lines of having the C of CRUD to allow the user to add a new row. Yes, that can be accomplished outside the component itself by adding perhaps some paper-input elements and an ADD button, but could it also be part of the GRID component? Like if a certain property, e.g. ALLOW-CREATE, is set to true, the grid will be displayed with an extra empty row at the beginning or end and when the user types some values and clicks OK or +, that row is added to the data source. Just a suggestion. Regards,Luiz

  From: Dmytro Hrytsenko <notifications@github.com>

To: David-Mulder/paper-datatable paper-datatable@noreply.github.com Cc: Luiz Omori luiz_omori@yahoo.com; Mention mention@noreply.github.com Sent: Friday, April 28, 2017 9:28 AM Subject: Re: [David-Mulder/paper-datatable] Allow adding rows (#132)

Hi @lomori. You can easily to it by changing your dataSource by adding a new item to it and then refresh a data in table.— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.