UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

52 lines (51 loc) 2.63 kB
/**----------------------------------------------------------------------------------------- * 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 GridSpacer 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 Grid * ([see example](slug:toolbartemplate_grid#toc-defining-the-spacing-between-toolbar-elements)). */ export class GridSpacerComponent { hostClass = true; get sizedClass() { return isPresent(this.width); } get flexBasisStyle() { return this.width; } /** * Specifies the width of the GridSpacer. * 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 GridSpacer will take all the available space. */ width; static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridSpacerComponent, isStandalone: true, selector: "kendo-grid-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: GridSpacerComponent, decorators: [{ type: Component, args: [{ selector: 'kendo-grid-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 }] } });