Skip to content

Commit baee51c

Browse files
authored
Merge pull request #24 from InboxSDK/chore/add-new-methods
chore(@inboxsdk/core@1.2.1): add new methods
2 parents 76cc92f + 7ec742c commit baee51c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

docs/appmenu.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ If the `insertOrder` option is provided, the app menu item will be added at that
2828

2929
_Returns_ an `AppMenuItemView`
3030

31+
#### isMenuOpen
32+
33+
_Returns_ whether or not the AppMenu Burger is uncollapsed or not.
34+
35+
### Properties
36+
37+
| Property | Type | Description | Required? | Default |
38+
| :--------- | :------- | :------------------------------------------------- | :-------- | :------ |
39+
| **events** | `Events` | A kefir stream of events related to the namespace. | | |
40+
41+
### Events
42+
43+
#### collapseToggled
44+
45+
The TransitionEvent that was fired when the AppMenu's collapsiblepanel toggle collapsed or open started, canceled, or ended. `transactionstart` and `transitioncancel` are currently fired. We also theoretically handle `transactionend`, but it isn't currently fired.
46+
3147
---
3248

3349
## AppMenuItemView

docs/navmenu.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ Collapse or uncollapse this NavItemView
4848
| :--- | :--- | :--- |
4949
| **collapseValue** | `boolean` | whether to collapse or uncollapse |
5050

51+
#### getElement()
52+
_Returns_ the underlying HTMLElement for the `NavItemView`.
53+
5154

5255
### Events
5356
#### destroy

0 commit comments

Comments
 (0)