{"id":18320372,"url":"https://github.com/nativescript-vue/nativescript-vue-multi-drawer","last_synced_at":"2025-09-15T07:06:05.558Z","repository":{"id":49162216,"uuid":"157866381","full_name":"nativescript-vue/nativescript-vue-multi-drawer","owner":"nativescript-vue","description":"A NativeScript-Vue component for creating multiple side drawers (4 sides supported)","archived":false,"fork":false,"pushed_at":"2022-06-24T10:25:20.000Z","size":3279,"stargazers_count":48,"open_issues_count":5,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T22:32:34.543Z","etag":null,"topics":["bottom-sheet","drawer","nativescript","nativescript-plugin","nativescript-vue","side-drawer"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nativescript-vue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-16T12:44:40.000Z","updated_at":"2024-05-30T15:51:37.000Z","dependencies_parsed_at":"2022-09-12T02:11:20.967Z","dependency_job_id":null,"html_url":"https://github.com/nativescript-vue/nativescript-vue-multi-drawer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nativescript-vue/nativescript-vue-multi-drawer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-vue%2Fnativescript-vue-multi-drawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-vue%2Fnativescript-vue-multi-drawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-vue%2Fnativescript-vue-multi-drawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-vue%2Fnativescript-vue-multi-drawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nativescript-vue","download_url":"https://codeload.github.com/nativescript-vue/nativescript-vue-multi-drawer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nativescript-vue%2Fnativescript-vue-multi-drawer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275219727,"owners_count":25425934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bottom-sheet","drawer","nativescript","nativescript-plugin","nativescript-vue","side-drawer"],"created_at":"2024-11-05T18:16:03.598Z","updated_at":"2025-09-15T07:06:05.504Z","avatar_url":"https://github.com/nativescript-vue.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NativeScript-Vue Multi Drawer\n\nA plugin which provides a drawer component that supports multiple drawers.\n\n\u003cimg src=\"https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-multi-drawer/master/multi-drawer-demo.gif\" width=\"350\"\u003e\n\nAll drawers are optional, and can be configured individually.\n\nFeatures:\n * drawers on left, right, top and bottom\n * swipe to open\n * swipe to close\n * tap outside to close\n * progressively dim main content as the drawer is opened\n \n ## Quick Start\n \n ```bash\n$ npm i --save nativescript-vue-multi-drawer\n ```\n \n\n```diff\n// main.js\nimport Vue from 'nativescript-vue'\n...\n+ import MultiDrawer from 'nativescript-vue-multi-drawer'\n+ Vue.use(MultiDrawer)\n```\n\nOptionally set default options by passing `options` when installing the plugin:\n```js\nVue.use(MultiDrawer, { \n  // override any option here\n  // for example enable debug mode\n  debug: true\n})\n```\n\nFor the available options check [the source of defaultOptions](https://github.com/nativescript-vue/nativescript-vue-multi-drawer/blob/98df9f4d342ebae12c761e45f4f23f68c15fb094/index.js#L5-L76)\n\n```xml\n\u003cMultiDrawer\u003e\n  \u003cStackLayout slot=\"left\"\u003e\n    \u003cLabel text=\"Im in the left drawer\" /\u003e  \n  \u003c/StackLayout\u003e\n  \u003cStackLayout slot=\"right\"\u003e\n    \u003cLabel text=\"Im in the right drawer\" /\u003e  \n  \u003c/StackLayout\u003e\n  \u003cStackLayout slot=\"top\"\u003e\n    \u003cLabel text=\"Im in the top drawer\" /\u003e  \n  \u003c/StackLayout\u003e\n  \u003cStackLayout slot=\"bottom\"\u003e\n    \u003cLabel text=\"Im in the bottom drawer\" /\u003e  \n  \u003c/StackLayout\u003e\n  \n  \u003cFrame /\u003e \u003c!-- main content goes into the default slot --\u003e\n\u003c/MultiDrawer\u003e\n```\n\nThe 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.\n\n### Opening a drawer from code\n\nAssign a ref to the Drawer component\n```xml\n\u003cMultiDrawer ref=\"drawer\" /\u003e\n```\n\nAnd use `this.$refs.drawer.open(side)` where `side` is a string: `left`, `right`, `top` or `bottom`.\n\n### Using v-model to toggle the drawer\n\nThe drawer can be opened through v-model. This is useful as it allows controlling the drawer state with Vue's reactivity system. For example, the value of v-model could easily come from a vuex store.\n\n```xml\n\u003cMultiDrawer v-model=\"drawerState\" /\u003e\n```\n\n```js\nexport default {\n  data() {\n    return {\n      drawerState: false // closed\n    }\n  },\n  \n  methods: {\n    doStuff() {\n      // do stuff\n      this.drawerState = 'left' // this will open the left drawer\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativescript-vue%2Fnativescript-vue-multi-drawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnativescript-vue%2Fnativescript-vue-multi-drawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnativescript-vue%2Fnativescript-vue-multi-drawer/lists"}