Skip to content

Commit 9275e6f

Browse files
No data text
1 parent 8799b46 commit 9275e6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app-table/app-table.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,23 @@ export class AppTable extends LitElement {
6767
columnConfig: { type: Array },
6868
data: { type: Array },
6969
hideColumnsOnMobile: { type: Array },
70+
options: { type: Object }
7071
};
7172
}
7273
constructor() {
7374
super();
7475
this.columnConfig = [];
7576
this.data = [];
7677
this.hideColumnsOnMobile = [];
78+
this.options = null
7779
}
7880
connectedCallback() {
7981
super.connectedCallback();
8082
}
8183

8284
render() {
8385
if (!this.data || this.data.length == 0) {
84-
return html`<div>NO DATA</div>`;
86+
return this.options && this.options['noDataText'] ? html`<div>${this.options['noDataText']}</div>` : html`<div>NO DATA</div>`;
8587
}
8688

8789
return html`

0 commit comments

Comments
 (0)