import { KbqTableModule } from '@koobiq/components/table';

KbqTable

componentCopy link to KbqTable

A styling layer over a native <table>: it applies the library's spacing, typography and colors and leaves the semantics to the platform. Sorting, resizing and virtual scrolling are out of scope — only standard HTML table capabilities are available.

@Component({ selector: 'table[kbq-table]', exportAs: 'kbqTable' })
class KbqTable {
    readonly border = input<boolean>(false);
    readonly disableHover = input<boolean>(false);
    readonly stickyHeader = input<boolean>(false);
}
borderinputCopy link to borderboolean

Whether a line is drawn under every body row. Toggles the kbq-table_bordered class. Defaults to false.

disableHoverinputCopy link to disableHoverboolean

Whether the background change on row hover is suppressed. Toggles the kbq-table_disable-hover class. Use it when rows are not interactive and the highlight would be misleading. Defaults to false.

stickyHeaderinputCopy link to stickyHeaderboolean

Whether the header stays visible while the table scrolls. Toggles the kbq-table_sticky-header class. Defaults to false.

Suggestions for improvement
If you found a mistake or want to improve the article, create an issue on GitHub.