Katrid.Forms.TableView
TableView is the view mode used to render a table with data records, or a query result. The table view widget can be rendered inside a ModelWindowAction or directly on a DOM element.
<script>
const tableStructure = {
fields: {
name: {caption: 'Name'},
category: {caption: 'Category'},
},
template: `...`,
}
const table = new Katrid.Forms.TableView(tableStructure);
table.renderTo(document.getElementById('page-content'));
</script>