@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
84 lines (83 loc) • 3.36 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { EventEmitter, OnChanges, AfterViewInit } from '@angular/core';
import { ColumnMenuItemContentTemplateDirective } from './column-menu-item-content-template.directive';
import { SVGIcon } from '@progress/kendo-svg-icons';
import { ColumnMenuService } from './column-menu.service';
import * as i0 from "@angular/core";
/**
* Represents an item that can be placed inside a
* [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
*
* @example
* ```html
* <kendo-grid [columnMenu]="true" ...>
* <ng-template kendoGridColumnMenuTemplate let-service="service" let-column="column">
* <kendo-grid-columnmenu-item text="Fit column"></kendo-grid-columnmenu-item>
* </ng-template>
* </kendo-grid>
* ```
*/
export declare class ColumnMenuItemComponent implements AfterViewInit, OnChanges {
/**
* Fires when the item is clicked.
*/
itemClick: EventEmitter<any>;
/**
* Fires when the content is expanded.
*/
expand: EventEmitter<any>;
/**
* Fires when the content is collapsed.
*/
collapse: EventEmitter<any>;
/**
* Specifies the name of the [font icon](slug:icons#icons-list)
* that will be rendered for the item.
*/
icon: string;
/**
* Specifies the name of the [SVG icon]({% slug svgicon_list %})
* that will be rendered for the item.
*/
svgIcon: SVGIcon;
/**
* Specifies the item text.
*/
text: string;
/**
* Specifies if the item is selected.
*/
selected: boolean;
/**
* Specifies if the item is disabled.
*/
disabled: boolean;
/**
* Specifies if the item is expanded.
*/
expanded: boolean;
/**
* Represents the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) class.
* Required to include the item in the column menu keyboard navigation sequence.
*/
service: ColumnMenuService;
contentTemplate: ColumnMenuItemContentTemplateDirective;
contentState: string;
contentId: string;
chevronUpIcon: SVGIcon;
chevronDownIcon: SVGIcon;
get expandedIcon(): string;
get expandedSvgIcon(): SVGIcon;
ngAfterViewInit(): void;
ngOnChanges(changes: any): void;
/**
* @hidden
*/
onClick(e: any): void;
private updateContentState;
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnMenuItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnMenuItemComponent, "kendo-grid-columnmenu-item", never, { "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "service": { "alias": "service"; "required": false; }; }, { "itemClick": "itemClick"; "expand": "expand"; "collapse": "collapse"; }, ["contentTemplate"], never, true, never>;
}