Skip to content

Commit

Permalink
fix: add ability to pass custom user data trough toggleable params
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Apr 13, 2021
1 parent 0b75f3a commit 9e7af26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/esl-toggleable/core/esl-toggleable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export interface ToggleableActionParams {
activator?: HTMLElement;
/** Event that initiates the action */
event?: Event;

/** Custom user data */
[key: string]: any;
}

const activators: WeakMap<ESLToggleable, HTMLElement | undefined> = new WeakMap();
Expand Down

0 comments on commit 9e7af26

Please sign in to comment.