Skip to content

Commit 18ad925

Browse files
authored
Merge pull request #38 from github/add-toplayer-support-plus-active-deactivate-events
add toplayer support, plus active/deactivate events
2 parents f970a70 + 5a313f7 commit 18ad925

File tree

4 files changed

+2565
-1283
lines changed

4 files changed

+2565
-1283
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Use Node.js
1717
uses: actions/setup-node@v1
1818
with:
19-
node-version: '12.x'
19+
node-version: '20.x'
2020
- name: npm install, build, and test
2121
run: |
2222
npm install

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)