UNPKG

@progress/kendo-angular-editor

Version:
84 lines (83 loc) 3.29 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { EventEmitter, ElementRef, Renderer2 } from '@angular/core'; import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar'; import { ItemDisabledFn } from '@progress/kendo-angular-dropdowns'; import { DialogService } from '@progress/kendo-angular-dialog'; import { SVGIcon } from '@progress/kendo-svg-icons'; import { FormatItem } from '../../common/format-item.interface'; import { EditorLocalizationService } from '../../localization/editor-localization.service'; import { FormatDropDownListComponent } from './editor-format-dropdownlist.component'; import { ProviderService } from '../../common/provider.service'; import { EditorToolsService } from '../tools.service'; import * as i0 from "@angular/core"; /** * Configures a DropDownListComponent as an Editor tool * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)). * Associates a `kendo-dropdownlist` with an Editor command that changes the format of a content block. * Automatically sets the options and values of the DropDownList ([see example]({% slug toolbartools_editor %}#toc-dropdownlists)). * * @example * ```html * <kendo-editor> * <kendo-toolbar> * <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist> * </kendo-toolbar> * </kendo-editor> * ``` */ export declare class EditorFormatComponent extends ToolBarToolComponent { private dialogService; private localization; private toolsService; private renderer; value: string; defaultItem: FormatItem; itemDisabled: ItemDisabledFn; disabled: boolean; tabindex: number; /** * Sets the format items list. Use this property to override the default list. */ set data(formatItems: FormatItem[]); get data(): FormatItem[]; /** * Emits when the value of the DropDownList changes. */ valueChange: EventEmitter<FormatItem>; formatDropDownList: FormatDropDownListComponent; formatButton: ElementRef; private subs; private _data; applyFormatSVGIcon: SVGIcon; private editor; constructor(dialogService: DialogService, localization: EditorLocalizationService, providerService: ProviderService, toolsService: EditorToolsService, renderer: Renderer2); ngOnInit(): void; /** * @hidden */ onValueChange(ev: string): void; ngOnDestroy(): void; get outerWidth(): number; get title(): string; /** * @hidden */ openDialog(): void; /** * @hidden */ canFocus(): boolean; /** * @hidden */ focus(): void; /** * @hidden */ handleKey(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<EditorFormatComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<EditorFormatComponent, "kendo-toolbar-dropdownlist[kendoEditorFormat]", never, { "data": { "alias": "data"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>; }