UNPKG

carbon-components-angular

Version:
69 lines (65 loc) 2.14 kB
/** * * carbon-angular v0.0.0 | modal-header.component.d.ts * * Copyright 2014, 2024 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { EventEmitter } from "@angular/core"; import { I18n } from "carbon-components-angular/i18n"; import * as i0 from "@angular/core"; /** * ***Inputs*** * ```html * <cds-modal-header>Header text</cds-modal-header> * ``` * * ***Outputs*** * ```html * <cds-modal-header (closeSelect)="closeModal()">Header text</cds-modal-header> * ``` */ export declare class ModalHeader { protected i18n: I18n; /** * @deprecated since v5 * Sets the style on the modal heading based on its category. */ theme: string; /** * Accessible label for the header close button. * Defaults to the `MODAL.CLOSE` value from the i18n service. */ closeLabel: any; /** * Set to `false` to hide the close button. */ showCloseButton: boolean; /** * To emit the event of clicking on the close icon within the modal. */ closeSelect: EventEmitter<any>; buttonNgClass: { "cds--modal-close": boolean; }; buttonAttributes: { "aria-label": any; }; constructor(i18n: I18n); /** * Handles click for the close icon button within the `Modal`. */ onClose(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ModalHeader, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ModalHeader, "cds-modal-header, ibm-modal-header", never, { "theme": "theme"; "closeLabel": "closeLabel"; "showCloseButton": "showCloseButton"; }, { "closeSelect": "closeSelect"; }, never, ["*"], false>; }