@progress/kendo-angular-treelist
Version:
Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.
51 lines (50 loc) • 2.67 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Component, HostBinding, Input } from '@angular/core';
import { isPresent } from '../../utils';
import * as i0 from "@angular/core";
/**
* Represents the Kendo UI TreeListSpacer component for Angular.
* Used to give additional white space between the Pager inner elements,
* and provides a way for customizing the spacer width.
* It can also be used in any flex container within the TreeList. [See example](slug:toolbartemplate_treelist#toc-defining-the-spacing-between-toolbar-elements).
*/
export class TreeListSpacerComponent {
hostClass = true;
get sizedClass() {
return isPresent(this.width);
}
get flexBasisStyle() {
return this.width;
}
/**
* Specifies the width of the TreeListSpacer.
* Accepts the [string values of the CSS `flex-basis` property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis).
*
* If not set, the TreeListSpacer will take all the available space.
*/
width;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeListSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeListSpacerComponent, isStandalone: true, selector: "kendo-treelist-spacer", inputs: { width: "width" }, host: { properties: { "class.k-spacer": "this.hostClass", "class.k-spacer-sized": "this.sizedClass", "style.flexBasis": "this.flexBasisStyle" } }, ngImport: i0, template: ``, isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeListSpacerComponent, decorators: [{
type: Component,
args: [{
selector: 'kendo-treelist-spacer',
template: ``,
standalone: true
}]
}], propDecorators: { hostClass: [{
type: HostBinding,
args: ['class.k-spacer']
}], sizedClass: [{
type: HostBinding,
args: ['class.k-spacer-sized']
}], flexBasisStyle: [{
type: HostBinding,
args: ['style.flexBasis']
}], width: [{
type: Input
}] } });