Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 67367c6

Browse files
committed
chore: add more docs
1 parent 6bdbf4c commit 67367c6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
A plugin which provides a drawer component that supports multiple drawers.
44

5-
| Demo |
6-
| ------------------------------------------- |
7-
| ![Multi Drawer Demo](multi-drawer-demo.gif) |
5+
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-multi-drawer/master/multi-drawer-demo.gif" width="350">
86

97
All drawers are optional, and can be configured individually.
108

@@ -62,3 +60,11 @@ For the available options check [the source of defaultOptions](https://github.co
6260

6361
The component will only enable drawers that have contents in them, so if you only need a left and a right side drawer, you can just remove the top and bottom slots and it will work as expected.
6462

63+
### Opening a drawer from code
64+
65+
Assign a ref to the Drawer component
66+
```xml
67+
<MultiDrawer ref="drawer" />
68+
```
69+
70+
And use `this.$refs.drawer.open(side)` where `side` is a string: `left`, `right`, `top` or `bottom`.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /