You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to update data for a row externally and have it re-render in the table.
Need something like this:
var _datatable = document.querySelector('paper-datatable');
var data = _datatable.get('data');
var model = data[0];
model.my_attr = 'New Value';
// Re-render the row - won't work.
_datatable.set('data.1', model);
// This won't work neither.
//_datatable.set(['data', index, _datatable.idProperty], 1);
I tried to work through from implementation of _triggerSave() in paper-datatable-card.html, but without any effect. How do I do that properly?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi! Try to set right row number: this.$.paperDatatable.set('data.#1.author', 'Tom'); I find it example on docs page Getting started and it help me with a same problem)
I need to update data for a row externally and have it re-render in the table.
Need something like this:
I tried to work through from implementation of _triggerSave() in paper-datatable-card.html, but without any effect. How do I do that properly?
Thanks!
The text was updated successfully, but these errors were encountered: