Skip to content

Commit d215a84

Browse files
committed
add toplayer support, plus active/deactivate events
1 parent f970a70 commit d215a84

File tree

3 files changed

+2564
-1282
lines changed

3 files changed

+2564
-1282
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ expander.addEventListener('text-expander-committed', function(event) {
105105
})
106106
```
107107
108+
**`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()`.
109+
110+
**`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.
111+
108112
## Browser support
109113
110114
Browsers without native [custom element support][support] require a [polyfill][].

0 commit comments

Comments
 (0)