Skip to content
Snippets Groups Projects
Commit f45b3418 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files

Add datatable.net css to dist/

parent c6758bfc
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,14 @@ export default {
],
outputFolder: 'dist'
}),
copy({
targets: [
'node_modules/datatables.net-dt/css',
'node_modules/datatables.net-dt/images'
],
outputFolder: 'dist/datatables'
}),
(process.env.ROLLUP_WATCH === 'true') ? serve({contentBase: 'dist', host: '127.0.0.1', port: 8003}) : false
]
};
import $ from 'jquery';
import dt from 'datatables.net';
import {setting, getAPiUrl} from './utils.js';
import {setting, getAPiUrl, getAssetURL, } from './utils.js';
import {i18n} from './i18n';
import {html, LitElement} from 'lit-element';
import commonUtils from 'vpu-common/utils';
......@@ -51,11 +51,12 @@ class DataTableView extends LitElement {
}
render() {
var dt_css = getAssetURL('datatables/css/jquery.dataTables.min.css')
return html`
<link rel="stylesheet" href="${dt_css}">
<style>
</style>
<table>
<tr><th>TODO..</th></tr>
<table id="dt" class="display" style="width:100%">
</table>
`;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment