Customizing Table
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-table-border-width | Number | 1px | 1px |
Description
The width of the table border. | |||
$kendo-table-cell-vertical-border-width | Number | 1px | 1px |
Description
The width of vertical border of table cells. | |||
$kendo-table-cell-horizontal-border-width | Number | 0px | 0px |
Description
The width of horizontal border of table cells. | |||
$kendo-table-font-size | Null | null | null |
Description
The font size of the table if no size is specified. | |||
$kendo-table-line-height | Null | null | null |
Description
The line-height of the table if no size is specified. | |||
$kendo-table-cell-padding-x | Null | null | null |
Description
The horizontal padding of the cells in the table if no size is specified. | |||
$kendo-table-cell-padding-y | Null | null | null |
Description
The vertical padding of the cells in the table if no size is specified. | |||
$kendo-table-sizes | Map | (
sm: (
font-size: var( --kendo-font-size, inherit ) ,
line-height: var( --kendo-line-height, normal ),
cell-padding-x: $kendo-table-sm-cell-padding-x,
cell-padding-y: $kendo-table-sm-cell-padding-y
),
md: (
font-size: var( --kendo-font-size, inherit ) ,
line-height: var( --kendo-line-height, normal ),
cell-padding-x: $kendo-table-md-cell-padding-x,
cell-padding-y: $kendo-table-md-cell-padding-y
),
lg: (
font-size: var( --kendo-font-size, inherit ) ,
line-height: var( --kendo-line-height, normal ),
cell-padding-x: $kendo-table-lg-cell-padding-x,
cell-padding-y: $kendo-table-lg-cell-padding-y
)
) | (sm: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), cell-padding-x: var(--kendo-spacing-2, 0.5rem), cell-padding-y: var(--kendo-spacing-1, 0.25rem)), md: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), cell-padding-x: 0.5rem, cell-padding-y: 0.5rem), lg: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), cell-padding-x: var(--kendo-spacing-2, 0.5rem), cell-padding-y: var(--kendo-spacing-2\.5, 0.625rem))) |
Description
The sizes of the table. | |||
$kendo-table-bg | String | $kendo-component-bg | var(--kendo-color-surface-alt, #ffffff) |
Description
Background color of tables. | |||
$kendo-table-text | String | $kendo-component-text | var(--kendo-color-on-app-surface, #212529) |
Description
Text color of tables. | |||
$kendo-table-border | String | $kendo-component-border | var(--kendo-color-border, #dee2e6) |
Description
Border color of tables. | |||
$kendo-table-header-bg | String | $kendo-component-header-bg | var(--kendo-color-surface, #f8f9fa) |
Description
Background color of table headers. | |||
$kendo-table-header-text | String | $kendo-component-header-text | var(--kendo-color-on-app-surface, #212529) |
Description
Text color of table headers. | |||
$kendo-table-header-border | String | $kendo-component-header-border | var(--kendo-color-border, #dee2e6) |
Description
Border color of table headers. | |||
$kendo-table-header-gradient | Null | $kendo-component-header-gradient | null |
Description
Gradient of table headers. | |||
$kendo-table-footer-bg | String | $kendo-table-header-bg | var(--kendo-color-surface, #f8f9fa) |
Description
Background color of table footers. | |||
$kendo-table-footer-text | String | $kendo-table-header-text | var(--kendo-color-on-app-surface, #212529) |
Description
Text color of table footers. | |||
$kendo-table-footer-border | String | $kendo-table-header-border | var(--kendo-color-border, #dee2e6) |
Description
Border color of table footers. | |||
$kendo-table-group-row-bg | String | $kendo-table-header-bg | var(--kendo-color-surface, #f8f9fa) |
Description
Background color of group rows in table. | |||
$kendo-table-group-row-text | String | $kendo-table-header-text | var(--kendo-color-on-app-surface, #212529) |
Description
Text color of group rows in table. | |||
$kendo-table-group-row-border | String | $kendo-table-header-border | var(--kendo-color-border, #dee2e6) |
Description
Border color of group rows in table. | |||
$kendo-table-alt-row-bg | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 5%, transparent), rgba( k-contrast-color( $kendo-table-bg ), .04 )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #212529) 5%, transparent) |
Description
Background color of alternating rows in table. | |||
$kendo-table-alt-row-text | Null | null | null |
Description
Text color of alternating rows in table. | |||
$kendo-table-alt-row-border | Null | null | null |
Description
Border color of alternating rows in table. | |||
$kendo-table-hover-bg | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 9%, transparent), rgba( k-contrast-color( $kendo-table-bg ), .08 )) | color-mix(in srgb, var(--kendo-color-on-app-surface, #212529) 9%, transparent) |
Description
Background color of hovered rows in table. | |||
$kendo-table-hover-text | Null | null | null |
Description
Text color of hovered rows in table. | |||
$kendo-table-hover-border | Null | null | null |
Description
Border color of hovered rows in table. | |||
$kendo-table-focus-bg | Null | null | null |
Description
Background color of focused rows in table. | |||
$kendo-table-focus-text | Null | null | null |
Description
Text color of focused rows in table. | |||
$kendo-table-focus-border | Null | null | null |
Description
Border color of focused rows in table. | |||
$kendo-table-focus-shadow | List | inset 0 0 0 2px rgba( $kendo-color-black, .08) | inset 0 0 0 2px rgba(0, 0, 0, 0.08) |
Description
Box shadow of focused rows in table. | |||
$kendo-table-selected-bg | String | if($kendo-enable-color-system, color-mix(in srgb, k-color( primary ) 25%, transparent), rgba( $kendo-selected-bg, .25 )) | color-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent) |
Description
Background color of selected rows in table. | |||
$kendo-table-selected-text | String | $kendo-table-text | var(--kendo-color-on-app-surface, #212529) |
Description
Text color of selected rows in table. | |||
$kendo-table-selected-border | Null | null | null |
Description
Border color of selected rows in table. |