Sha256: 1f1295b1041ca270acc16b3ec16793ed7fabe15d5dfb0b55e76a54e329fc24b4
Contents?: true
Size: 1.71 KB
Versions: 106
Compression:
Stored size: 1.71 KB
Contents
import '@oddbird/popover-polyfill'; import type { IncludeFragmentElement } from '@github/include-fragment-element'; type SelectVariant = 'none' | 'single' | 'multiple' | null; type SelectedItem = { label: string | null | undefined; value: string | null | undefined; element: Element; }; export type ItemActivatedEvent = { item: Element; checked: boolean; }; declare global { interface HTMLElementEventMap { itemActivated: CustomEvent<ItemActivatedEvent>; } } export declare class ActionMenuElement extends HTMLElement { #private; includeFragment: IncludeFragmentElement; get selectVariant(): SelectVariant; set selectVariant(variant: SelectVariant); get dynamicLabelPrefix(): string; set dynamicLabelPrefix(value: string); get dynamicLabel(): boolean; set dynamicLabel(value: boolean); get popoverElement(): HTMLElement | null; get invokerElement(): HTMLButtonElement | null; get invokerLabel(): HTMLElement | null; get selectedItems(): SelectedItem[]; connectedCallback(): void; disconnectedCallback(): void; handleEvent(event: Event): void; get items(): HTMLElement[]; getItemById(itemId: string): HTMLElement | null; isItemDisabled(item: Element | null): boolean; disableItem(item: Element | null): void; enableItem(item: Element | null): void; isItemHidden(item: Element | null): boolean; hideItem(item: Element | null): void; showItem(item: Element | null): void; isItemChecked(item: Element | null): boolean; checkItem(item: Element | null): void; uncheckItem(item: Element | null): void; } declare global { interface Window { ActionMenuElement: typeof ActionMenuElement; } } export {};
Version data entries
106 entries across 53 versions & 3 rubygems