@engie-group/fluid-design-system-angular
Version:
Fluid Design System Angular
48 lines (47 loc) • 2.16 kB
TypeScript
import { NgIfContext } from '@angular/common';
import { AfterContentInit, QueryList, TemplateRef } from '@angular/core';
import { EngieTemplateDirective } from '../../directives/engie-template.directive';
import { TSizeVariants } from '../../models/size-variant.model';
import * as i0 from "@angular/core";
export declare class AccordionItemComponent implements AfterContentInit {
private element;
private accordion;
protected iconTemplate?: TemplateRef<unknown>;
protected headerTemplate?: TemplateRef<NgIfContext<string>>;
/**
* Size of the accordion item
*/
scale?: Extract<TSizeVariants, 'md' | 'lg'>;
/**
* Whether the toggle icon is place at the start of the item or not.
*/
hasLeadingToggleIcon?: boolean;
/**
* Whether the toggle use the alternative icons (plus/minus) or the default ones (arrow).
*/
useAlternativeToggleIcon?: boolean;
/**
* This attribute enables multiple <details> elements to be connected, with only one open at a time.
*/
name?: string;
/**
* Item header
*/
label?: string;
protected templateDirectives?: QueryList<EngieTemplateDirective>;
protected get classes(): string[];
ngAfterContentInit(): void;
protected handleClick(event: MouseEvent): void;
/**
* Expand the accordion item programmatically
*/
expand(): void;
/**
* Collapse the accordion item programmatically
*/
collapse(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "details[nj-accordion-item]", never, { "scale": { "alias": "scale"; "required": false; }; "hasLeadingToggleIcon": { "alias": "hasLeadingToggleIcon"; "required": false; }; "useAlternativeToggleIcon": { "alias": "useAlternativeToggleIcon"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, ["templateDirectives"], ["*"], true, never>;
static ngAcceptInputType_hasLeadingToggleIcon: unknown;
static ngAcceptInputType_useAlternativeToggleIcon: unknown;
}