accordionpackage.src.vaadin-accordion-mixin.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
The newest version!
/**
* @license
* Copyright (c) 2019 - 2024 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import type { Constructor } from '@open-wc/dedupe-mixin';
import type { KeyboardDirectionMixinClass } from '@vaadin/a11y-base/src/keyboard-direction-mixin.js';
/**
* A mixin providing common accordion functionality.
*/
export declare function AccordionMixin>(
base: T,
): Constructor & Constructor & T;
export declare class AccordionMixinClass {
/**
* The index of currently opened panel. First panel is opened by
* default. Only one panel can be opened at the same time.
* Setting null or undefined closes all the accordion panels.
*/
opened: number | null;
/**
* The list of `` child elements.
* It is populated from the elements passed to the light DOM,
* and updated dynamically when adding or removing panels.
*/
readonly items: HTMLElement[];
}