UNPKG

@progress/kendo-angular-buttons

Version:
46 lines (45 loc) 2.42 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Directive, Input } from '@angular/core'; import { ComponentMessages } from '@progress/kendo-angular-l10n'; import * as i0 from "@angular/core"; /** * @hidden */ export class Messages extends ComponentMessages { /** * The text for the SplitButton aria-label. * * The text for the aria-label consists of a two-part message - the text of the SplitButton and a localizable string. * For a SplitButton with text 'Reply', the default aria-label will be 'Reply splitbutton'. * * To allow reordering of the SplitButton text and the localizable part, the splitButtonLabel accepts a string with a * placeholder for the button text - e.g. 'splitbutton for {buttonText}'. The '{buttonText}' placeholder will be replaced * internally with the current SplitButton text, and the resulting aria-label will be rendered as 'splitbutton for Reply'. * * @example * * ```ts-no-run * <kendo-splitbutton> * <kendo-splitbutton-messages * splitButtonLabel="splitbutton for {buttonText}" * > * </kendo-splitbutton-messages> * </kendo-splitbutton> * ``` */ splitButtonLabel; static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: Messages, selector: "kendo-splitbutton-messages-base", inputs: { splitButtonLabel: "splitButtonLabel" }, usesInheritance: true, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, decorators: [{ type: Directive, args: [{ // eslint-disable-next-line @angular-eslint/directive-selector selector: 'kendo-splitbutton-messages-base' }] }], propDecorators: { splitButtonLabel: [{ type: Input }] } });