@if (heading()) { {{ heading() }}
}
@switch (state()) {
@case ('loading') {
}
@case ('ready') {
{{ description() }}
@if (chart(); as tpl) { }
@if (tableRows().length) {
{{ description() }}
@if (tableHeaders().length) {
@for (h of tableHeaders(); track $index) { | {{ h }} | }
}
@for (row of tableRows(); track $index) {
@for (cell of row; track $index) { | {{ cell }} | }
}
}
}
@case ('empty') { {{ emptyMessage() }}
}
@case ('error') {
{{ errorMessage() }}
}
@case ('locked') {
{{ lockedMessage() }}
}
}