New to Kendo UI for Vue? Start a free 30-day trial
Customizing Treeview
Variables
The following table lists the available variables for customization.
Name | Type | Default value | Computed value |
---|---|---|---|
$kendo-treeview-font-family | List | $kendo-font-family | system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" |
Description
The font family of the TreeView. | |||
$kendo-treeview-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of the TreeView. | |||
$kendo-treeview-sm-font-size | Number | $kendo-font-size-sm | 0.875rem |
Description
The font size of the small TreeView. | |||
$kendo-treeview-md-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of the medium TreeView. | |||
$kendo-treeview-lg-font-size | Number | $kendo-font-size-md | 1rem |
Description
The font size of the large TreeView. | |||
$kendo-treeview-line-height | Number | $kendo-line-height-md | 1.5 |
Description
The line height of the TreeView. | |||
$kendo-treeview-sm-line-height | Number | k-math-div( 20, 14 ) | 1.4285714286 |
Description
The line height of the small TreeView. | |||
$kendo-treeview-md-line-height | Number | $kendo-line-height-md | 1.5 |
Description
The line height of the medium TreeView. | |||
$kendo-treeview-lg-line-height | Number | $kendo-line-height-md | 1.5 |
Description
The line height of the large TreeView. | |||
$kendo-treeview-indent | Number | 24px | 24px |
Description
The indentation of child groups in the TreeView. | |||
$kendo-treeview-item-padding-x | Number | k-map-get( $kendo-spacing, 3 ) | 0.75rem |
Description
The horizontal padding of the TreeView items. | |||
$kendo-treeview-sm-item-padding-x | Number | k-map-get( $kendo-spacing, 2 ) | 0.5rem |
Description
The horizontal padding of the small TreeView items. | |||
$kendo-treeview-md-item-padding-x | Number | k-map-get( $kendo-spacing, 3 ) | 0.75rem |
Description
The horizontal padding of the medium TreeView items. | |||
$kendo-treeview-lg-item-padding-x | Number | k-map-get( $kendo-spacing, 3 ) | 0.75rem |
Description
The horizontal padding of the large TreeView items. | |||
$kendo-treeview-item-padding-y | Number | k-map-get( $kendo-spacing, 1 ) | 0.25rem |
Description
The vertical padding of the TreeView items. | |||
$kendo-treeview-sm-item-padding-y | Number | k-map-get( $kendo-spacing, 1 ) | 0.25rem |
Description
The vertical padding of the small TreeView items. | |||
$kendo-treeview-md-item-padding-y | Number | k-map-get( $kendo-spacing, 1 ) | 0.25rem |
Description
The vertical padding of the medium TreeView items. | |||
$kendo-treeview-lg-item-padding-y | Number | k-map-get( $kendo-spacing, 2 ) | 0.5rem |
Description
The vertical padding of the large TreeView items. | |||
$kendo-treeview-item-border-width | Number | 0px | 0px |
Description
The border width of the TreeView items. | |||
$kendo-treeview-item-border-radius | Number | k-map-get( $kendo-spacing, 1 ) | 0.25rem |
Description
The border radius of the TreeView items. | |||
$kendo-treeview-sm-checkbox-padding-x | Number | k-map-get( $kendo-spacing, 1 ) | 0.25rem |
Description
The horizontal padding of the checkbox in the small TreeView. | |||
$kendo-treeview-md-checkbox-padding-x | Number | $kendo-treeview-sm-checkbox-padding-x | 0.25rem |
Description
The horizontal padding of the checkbox in the medium TreeView. | |||
$kendo-treeview-lg-checkbox-padding-x | Number | $kendo-treeview-sm-checkbox-padding-x | 0.25rem |
Description
The horizontal padding of the checkbox in the large TreeView. | |||
$kendo-treeview-sm-checkbox-padding-y | Number | k-map-get( $kendo-spacing, .5 ) | 0.125rem |
Description
The vertical padding of the checkbox in the small TreeView. | |||
$kendo-treeview-md-checkbox-padding-y | Null | null | null |
Description
The vertical padding of the checkbox in the medium TreeView. | |||
$kendo-treeview-lg-checkbox-padding-y | Null | null | null |
Description
The vertical padding of the checkbox in the large TreeView. | |||
$kendo-treeview-sizes | Map | (
sm: (
font-size: $kendo-treeview-sm-font-size,
line-height: $kendo-treeview-sm-line-height,
item-padding-x: $kendo-treeview-sm-item-padding-x,
item-padding-y: $kendo-treeview-sm-item-padding-y,
checkbox-padding-x: $kendo-treeview-sm-checkbox-padding-x,
checkbox-padding-y: $kendo-treeview-sm-checkbox-padding-y
),
md: (
font-size: $kendo-treeview-md-font-size,
line-height: $kendo-treeview-md-line-height,
item-padding-x: $kendo-treeview-md-item-padding-x,
item-padding-y: $kendo-treeview-md-item-padding-y,
checkbox-padding-x: $kendo-treeview-md-checkbox-padding-x,
checkbox-padding-y: $kendo-treeview-md-checkbox-padding-y
),
lg: (
font-size: $kendo-treeview-lg-font-size,
line-height: $kendo-treeview-lg-line-height,
item-padding-x: $kendo-treeview-lg-item-padding-x,
item-padding-y: $kendo-treeview-lg-item-padding-y,
checkbox-padding-x: $kendo-treeview-lg-checkbox-padding-x,
checkbox-padding-y: $kendo-treeview-lg-checkbox-padding-y
)
) | (sm: (font-size: 0.875rem, line-height: 1.4285714286, item-padding-x: 0.5rem, item-padding-y: 0.25rem, checkbox-padding-x: 0.25rem, checkbox-padding-y: 0.125rem), md: (font-size: 1rem, line-height: 1.5, item-padding-x: 0.75rem, item-padding-y: 0.25rem, checkbox-padding-x: 0.25rem, checkbox-padding-y: null), lg: (font-size: 1rem, line-height: 1.5, item-padding-x: 0.75rem, item-padding-y: 0.5rem, checkbox-padding-x: 0.25rem, checkbox-padding-y: null)) |
Description
The sizes map of the TreeView. | |||
$kendo-treeview-bg | Null | null | null |
Description
The background color of the TreeView. | |||
$kendo-treeview-text | Color | $kendo-component-text | #212529 |
Description
The text color of the TreeView. | |||
$kendo-treeview-border | Null | null | null |
Description
The border color of the TreeView. | |||
$kendo-treeview-item-hover-bg | Color | $kendo-hover-bg | #e9ecef |
Description
The background color of hovered TreeView items. | |||
$kendo-treeview-item-hover-text | Color | $kendo-hover-text | #212529 |
Description
The text color of hovered TreeView items. | |||
$kendo-treeview-item-hover-border | Color | $kendo-treeview-item-hover-bg | #e9ecef |
Description
The border color of hovered TreeView items. | |||
$kendo-treeview-item-hover-gradient | Null | null | null |
Description
The background gradient of hovered TreeView items. | |||
$kendo-treeview-item-selected-bg | Color | $kendo-selected-bg | #0d6efd |
Description
The background color of selected TreeView items. | |||
$kendo-treeview-item-selected-text | Color | $kendo-selected-text | white |
Description
The text color of selected TreeView items. | |||
$kendo-treeview-item-selected-border | Color | $kendo-treeview-item-selected-bg | #0d6efd |
Description
The border color of selected TreeView items. | |||
$kendo-treeview-item-selected-gradient | Null | null | null |
Description
The background gradient of selected TreeView items. | |||
$kendo-treeview-item-focus-shadow | List | inset 0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 15%, transparent), rgba( $kendo-treeview-text, .15 )) | inset 0 0 0 2px rgba(33, 37, 41, 0.15) |
Description
The box shadow of focused TreeView items. | |||
$kendo-treeview-loadmore-bg | Color | transparent | transparent |
Description
The background color of the Load More button in the TreeView. | |||
$kendo-treeview-loadmore-text | Color | $kendo-link-text | #0d6efd |
Description
The text color of the Load More button in the TreeView. | |||
$kendo-treeview-loadmore-border | Null | null | null |
Description
The border color of the Load More button in the TreeView. | |||
$kendo-treeview-loadmore-hover-bg | Color | transparent | transparent |
Description
The background color of the hovered Load More button in the TreeView. | |||
$kendo-treeview-loadmore-hover-text | Color | $kendo-link-hover-text | #0a58ca |
Description
The text color of the hovered Load More button in the TreeView. | |||
$kendo-treeview-loadmore-hover-border | Null | null | null |
Description
The border color of the hovered Load More button in the TreeView. | |||
$kendo-treeview-loadmore-focus-bg | Color | transparent | transparent |
Description
The background color of the focused Load More button in the TreeView. | |||
$kendo-treeview-loadmore-focus-text | Color | $kendo-link-hover-text | #0a58ca |
Description
The text color of the focused Load More button in the TreeView. | |||
$kendo-treeview-loadmore-focus-border | Null | null | null |
Description
The border color of the focused Load More button in the TreeView. | |||
$kendo-treeview-loadmore-focus-shadow | List | $kendo-treeview-item-focus-shadow | inset 0 0 0 2px rgba(33, 37, 41, 0.15) |
Description
The box shadow of the focused Load More button in the TreeView. |