Skip to content

Commit

Permalink
add toplayer support, plus active/deactivate events
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Nov 14, 2023
1 parent f970a70 commit d215a84
Show file tree
Hide file tree
Showing 3 changed files with 2,564 additions and 1,282 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ expander.addEventListener('text-expander-committed', function(event) {
})
```
**`text-expander-activate`** is fired just after the menu has been assigned and appended to the DOM, and just before it is about to be positioned near the text to expand. This is useful for assigning classes or calling imperative methods to show the menu, such as `.showPopover()`.
**`text-expander-dectivate`** is fired just before the menu is goind to be unassigned and removed from the DOM. This is useful for removing classes or running cleanup like removing from caches.
## Browser support
Browsers without native [custom element support][support] require a [polyfill][].
Expand Down
Loading

0 comments on commit d215a84

Please sign in to comment.