Sha256: 8f4edbc4e63f0a6cdefaa6f9744a1d5d5ca1a6d1064ecd0d0f2511b472601e72
Contents?: true
Size: 1.54 KB
Versions: 78
Compression:
Stored size: 1.54 KB
Contents
import { TOutletChangeData } from '../outlet_manager_controller/outlet_manager_controller'; import SyncedBooleanAttributesController from '../synced_boolean_attributes_controller/synced_boolean_attributes_controller'; type TOptionKey = string | number; type TActiveOptions = { [k: TOptionKey]: boolean; }; export interface OptionsOutlet extends SyncedBooleanAttributesController<TActiveOptions> { select: (e: Event, updateTo?: TOutletChangeData<TActiveOptions>) => void; } export default class OptionsController extends SyncedBooleanAttributesController<TActiveOptions> implements OptionsOutlet { #private; static outlets: string[]; static targets: string[]; static values: { activeOptions: ObjectConstructor; isMulti: { type: BooleanConstructor; default: boolean; }; toggleable: { type: BooleanConstructor; default: boolean; }; syncedAttrs: ArrayConstructor; antiAttrs: ArrayConstructor; protectAttrs: BooleanConstructor; outletEvents: ArrayConstructor; }; readonly optionTargets: Array<Element>; activeOptionsValue: TActiveOptions; readonly isMultiValue: boolean; readonly toggleableValue: boolean; select(event: Event, updateTo?: TOutletChangeData<TActiveOptions>): void; optionTargetConnected(element: Element): void; getValueForElement(element: Element): boolean; getState(): TActiveOptions; outletUpdate: (event: Event, updateTo?: TOutletChangeData<TActiveOptions>) => void; } export {};
Version data entries
78 entries across 42 versions & 1 rubygems