UNPKG

@visa/nova-angular

Version:

Visa Product Design System Nova Angular library

43 lines (42 loc) 1.89 kB
/** * Copyright (c) 2025 Visa, Inc. * * 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 { BooleanInput } from '@angular/cdk/coercion'; import { AfterContentInit, EventEmitter } from '@angular/core'; import { ButtonDirective } from '../button/button.directive'; import * as i0 from "@angular/core"; /** * Directive for creating a disclosure tab item. This directive is used in conjunction with the `v-tab-item` directive. <br /> * It is used to create a tab item that can be expanded or collapsed. This item cannot be set as active. */ export declare class TabItemDisclosureDirective implements AfterContentInit { button: ButtonDirective; /** * Sets expanded state of disclosure tab item. * @default false */ get expanded(): boolean; set expanded(value: BooleanInput); _expanded: boolean; /** * Emits expanded state when the child button is clicked. */ disclosureTabToggled: EventEmitter<boolean>; constructor(); ngAfterContentInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<TabItemDisclosureDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<TabItemDisclosureDirective, "[v-tab-item][disclosureTab]", never, { "expanded": { "alias": "expanded"; "required": false; }; }, { "disclosureTabToggled": "disclosureTabToggled"; }, ["button"], never, true, never>; }