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 | String | var( --kendo-font-family, normal ) | var(--kendo-font-family, normal) |
Description
The font family of the TreeView. | |||
$kendo-treeview-sm-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the small TreeView. | |||
$kendo-treeview-md-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the medium TreeView. | |||
$kendo-treeview-lg-font-size | String | var( --kendo-font-size, inherit ) | var(--kendo-font-size, inherit) |
Description
The font size of the large TreeView. | |||
$kendo-treeview-sm-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the small TreeView. | |||
$kendo-treeview-md-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the medium TreeView. | |||
$kendo-treeview-lg-line-height | String | var( --kendo-line-height, normal ) | var(--kendo-line-height, normal) |
Description
The line height of the large TreeView. | |||
$kendo-treeview-indent | String | k-spacing(6) | var(--kendo-spacing-6, 1.5rem) |
Description
The indentation of child groups in the TreeView. | |||
$kendo-treeview-sm-item-padding-x | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the small TreeView items. | |||
$kendo-treeview-md-item-padding-x | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the medium TreeView items. | |||
$kendo-treeview-lg-item-padding-x | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the large TreeView items. | |||
$kendo-treeview-sm-item-padding-y | String | k-spacing(1.5) | var(--kendo-spacing-1\.5, 0.375rem) |
Description
The vertical padding of the small TreeView items. | |||
$kendo-treeview-md-item-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the medium TreeView items. | |||
$kendo-treeview-lg-item-padding-y | String | k-spacing(2.5) | var(--kendo-spacing-2\.5, 0.625rem) |
Description
The vertical padding of the large TreeView items. | |||
$kendo-treeview-item-border-width | Number | 0 | 0 |
Description
The border width of the TreeView items. | |||
$kendo-treeview-item-border-radius | String | k-border-radius(md) | var(--kendo-border-radius-md, 0.25rem) |
Description
The border radius of the TreeView items. | |||
$kendo-treeview-filter-padding-x | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The horizontal padding of the TreeViews' filter element. | |||
$kendo-treeview-filter-padding-y | String | k-spacing(2) | var(--kendo-spacing-2, 0.5rem) |
Description
The vertical padding of the TreeViews' filter element. | |||
$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
),
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
),
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
)
) | (sm: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), item-padding-x: var(--kendo-spacing-2, 0.5rem), item-padding-y: var(--kendo-spacing-1\.5, 0.375rem)), md: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), item-padding-x: var(--kendo-spacing-2, 0.5rem), item-padding-y: var(--kendo-spacing-2, 0.5rem)), lg: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), item-padding-x: var(--kendo-spacing-2, 0.5rem), item-padding-y: var(--kendo-spacing-2\.5, 0.625rem))) |
Description
The sizes map of the TreeView. | |||
$kendo-treeview-bg | Color | transparent | transparent |
Description
The background color of the TreeView. | |||
$kendo-treeview-text | String | var( --kendo-component-text, inherit ) | var(--kendo-component-text, inherit) |
Description
The text color of the TreeView. | |||
$kendo-treeview-border | String | inherit | inherit |
Description
The border color of the TreeView. | |||
$kendo-treeview-item-bg | Color | transparent | transparent |
Description
The background color of the TreeView items. | |||
$kendo-treeview-item-text | String | var( --kendo-component-text, inherit ) | var(--kendo-component-text, inherit) |
Description
The text color of the TreeView items. | |||
$kendo-treeview-item-border | String | inherit | inherit |
Description
The border color of the TreeView items. | |||
$kendo-treeview-item-hover-bg | String | var( --kendo-hover-bg, inherit ) | var(--kendo-hover-bg, inherit) |
Description
The background color of hovered TreeView items. | |||
$kendo-treeview-item-hover-text | String | var( --kendo-hover-text, inherit ) | var(--kendo-hover-text, inherit) |
Description
The text color of hovered TreeView items. | |||
$kendo-treeview-item-hover-border | String | inherit | inherit |
Description
The border color of hovered TreeView items | |||
$kendo-treeview-item-focus-bg | Color | $kendo-treeview-item-bg | transparent |
Description
The background color of focused TreeView items. | |||
$kendo-treeview-item-focus-text | String | $kendo-treeview-item-text | var(--kendo-component-text, inherit) |
Description
The text color of focused TreeView items. | |||
$kendo-treeview-item-focus-border | String | $kendo-treeview-item-border | inherit |
Description
The border color of focused TreeView items. | |||
$kendo-treeview-item-focus-shadow | List | inset 0 0 0 1px if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 )) | inset 0 0 0 1px var(--kendo-color-base-emphasis, #605e5c) |
Description
The box shadow of focused TreeView items. | |||
$kendo-treeview-item-selected-bg | String | var( --kendo-selected-bg, inherit ) | var(--kendo-selected-bg, inherit) |
Description
The background color of selected TreeView items. | |||
$kendo-treeview-item-selected-text | String | var( --kendo-selected-text, inherit ) | var(--kendo-selected-text, inherit) |
Description
The text color of selected TreeView items. | |||
$kendo-treeview-item-selected-border | String | inherit | inherit |
Description
The border color of selected TreeView items. | |||
$kendo-treeview-item-disabled-bg | Color | $kendo-treeview-item-bg | transparent |
Description
The background color of disabled TreeView items. | |||
$kendo-treeview-item-disabled-text | String | var( --kendo-disabled-text, inherit ) | var(--kendo-disabled-text, inherit) |
Description
The text color of disabled TreeView items. | |||
$kendo-treeview-item-disabled-border | String | inherit | inherit |
Description
The border color of disabled 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 | String | var( --kendo-link-text, initial ) | var(--kendo-link-text, initial) |
Description
The text color of the Load More button in the TreeView | |||
$kendo-treeview-loadmore-border | String | inherit | inherit |
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 | String | var( --kendo-link-hover-text, initial ) | var(--kendo-link-hover-text, initial) |
Description
The text color of the hovered Load More button in the TreeView. | |||
$kendo-treeview-loadmore-hover-border | String | inherit | inherit |
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 | String | var( --kendo-link-hover-text, initial ) | var(--kendo-link-hover-text, initial) |
Description
The text color of the focused Load More button in the TreeView. | |||
$kendo-treeview-loadmore-focus-border | String | inherit | inherit |
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 1px var(--kendo-color-base-emphasis, #605e5c) |
Description
The box shadow of the focused Load More button in the TreeView. | |||
$kendo-treeview-checkbox-wrap-padding | String | k-spacing(.5) | var(--kendo-spacing-0\.5, 0.125rem) |
Description
The padding of the checkbox wrapper in the TreeView. |