Files
attract/src/scripts/js/es6/common/vuecomponents/attracttable/rows/AttractRowBase.js
Tobias Johansson a7c1f5aa39 Store filter/column settings in localStorage
The filter and column settings in tables are stored per project and
context in the browsers localStorage. This makes the table keep the
settings even if the browser is refreshed or restarted.

The table emits a "componentStateChanged" event containing the tables
current state (filter/column settings) which then is saved by the top
level component.
2019-03-28 10:29:13 +01:00

19 lines
442 B
JavaScript

let RowBase = pillar.vuecomponents.table.rows.RowBase;
class AttractRowBase extends RowBase {
constructor(underlyingObject) {
super(underlyingObject);
pillar.events.Nodes.onUpdated(this.getId(), this.onRowUpdated.bind(this));
}
onRowUpdated(event) {
this.underlyingObject = event.detail;
}
getStatus() {
return this.underlyingObject.properties.status;
}
}
export { AttractRowBase }