Skip to content
Snippets Groups Projects
Commit 5b6cf878 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Add setCSSStyle method

parent 78b48f20
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,11 @@ class DataTableView extends LitElement { ...@@ -29,6 +29,11 @@ class DataTableView extends LitElement {
this.columnDefs = []; this.columnDefs = [];
this.data = []; this.data = [];
this.cc = 1; this.cc = 1;
this.cssStyle = '';
}
setCSSStyle(style) {
this.cssStyle = style;
} }
static get properties() { static get properties() {
...@@ -41,6 +46,7 @@ class DataTableView extends LitElement { ...@@ -41,6 +46,7 @@ class DataTableView extends LitElement {
columnDefs: { type: Array, attribute: false }, columnDefs: { type: Array, attribute: false },
data: { type: Array, attribute: false }, data: { type: Array, attribute: false },
cc: {type: Number, attribute: 'columns-count'}, cc: {type: Number, attribute: 'columns-count'},
cssStyle: { type: String, attribute: false },
}; };
} }
...@@ -115,6 +121,7 @@ class DataTableView extends LitElement { ...@@ -115,6 +121,7 @@ class DataTableView extends LitElement {
<link rel="stylesheet" href="${dt_css}"> <link rel="stylesheet" href="${dt_css}">
<link rel="stylesheet" href="${rs_css}"> <link rel="stylesheet" href="${rs_css}">
<style> <style>
${this.cssStyle}
</style> </style>
<div><table></table></div> <div><table></table></div>
`; `;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment