|
2 | 2 |
|
3 | 3 | A plugin which provides a drawer component that supports multiple drawers.
|
4 | 4 |
|
5 | | -| Demo | |
6 | | -| ------------------------------------------- | |
7 | | -|  | |
| 5 | +<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-multi-drawer/master/multi-drawer-demo.gif" width="350"> |
8 | 6 |
|
9 | 7 | All drawers are optional, and can be configured individually.
|
10 | 8 |
|
@@ -62,3 +60,11 @@ For the available options check [the source of defaultOptions](https://github.co
|
62 | 60 |
|
63 | 61 | 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.
|
64 | 62 |
|
| 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