mirror of
https://github.com/janishutz/fundamentals-of-webengineering.git
synced 2026-01-08 07:58:23 +01:00
More or less finish rendering framework
This commit is contained in:
1 parent
7263ae6f5f
commit
d35a47e4b0
6 files changed
+377
-150
No files matched your search
+44
-1
@@ -1,5 +1,48 @@
|
||||
import '@fortawesome/fontawesome-free/css/all.css';
|
||||
import '../css/layout.css';
|
||||
import '@picocss/pico/css/pico.min.css';
|
||||
import {
|
||||
listRef, ref
|
||||
} from './rendering/framework';
|
||||
import {
|
||||
CSV_Data
|
||||
} from './types';
|
||||
import {
|
||||
RenderTemplate
|
||||
} from './rendering/rendering';
|
||||
|
||||
// TODO start here with the first entry point
|
||||
const dataList = listRef<CSV_Data>(
|
||||
document.getElementById( 'data-table' )!,
|
||||
[],
|
||||
'table-body',
|
||||
{
|
||||
'type': 'tr',
|
||||
'cssClasses': [],
|
||||
'children': []
|
||||
}
|
||||
);
|
||||
const headerList = listRef<string>(
|
||||
document.getElementById( 'data-header' )!,
|
||||
[],
|
||||
'table-header',
|
||||
{
|
||||
'type': 'td',
|
||||
'cssClasses': [],
|
||||
'children': []
|
||||
}
|
||||
);
|
||||
const tableRowElement: RenderTemplate = {
|
||||
'type': 'td',
|
||||
'cssClasses': [],
|
||||
'children': [],
|
||||
};
|
||||
const filename = ref<string>( [ document.getElementById( 'data-filename' )! ], '' );
|
||||
const filetype = ref<string>( [ document.getElementById( 'data-filetype' )! ], '' );
|
||||
const filesize = ref<string>( [ document.getElementById( 'data-filesize' )! ], '' );
|
||||
const rowCount = ref<string>( [ document.getElementById( 'data-rowcount' )! ], '' );
|
||||
const filter = ref<string>( [ document.getElementById( 'filter' )! ], '' );
|
||||
const columnName = ref<string>( [ document.getElementById( 'column-selected' )! ], '' );
|
||||
const columnDatatype = ref<string>( [ document.getElementById( 'column-datatype' )! ], '' );
|
||||
const columnEntries = ref<string>( [ document.getElementById( 'column-entries' )! ], '' );
|
||||
const columnMax = ref<string>( [ document.getElementById( 'column-max' )! ], '' );
|
||||
const columnMin = ref<string>( [ document.getElementById( 'column-min' )! ], '' );
|
||||
Reference in new issue
Block a user