Vue Attract: Sort/filterable table based on Vue
Initial commit implementing sortable and filterable tables for attract using Vue.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
let ColumnBase = pillar.vuecomponents.table.columns.ColumnBase;
|
||||
import { CellRowObject } from '../cells/renderer/CellRowObject'
|
||||
|
||||
class RowObject extends ColumnBase {
|
||||
constructor() {
|
||||
super('Name', 'row-object');
|
||||
this.isMandatory = true;
|
||||
}
|
||||
|
||||
getCellRenderer(rowObject) {
|
||||
return CellRowObject.options.name;
|
||||
}
|
||||
|
||||
getRawCellValue(rowObject) {
|
||||
return rowObject.getName() || '<No Name>';
|
||||
}
|
||||
}
|
||||
|
||||
export { RowObject }
|
Reference in New Issue
Block a user