UNPKG

@nativescript-community/ui-drawer

Version:

Easily add a side drawer (side menu) to your projects.

26 lines 616 B
export default { props: {}, template: ` <NativeDrawer ref="drawer" v-bind="$attrs" v-on="$listeners"> <slot /> </NativeDrawer> `, methods: { open(side) { return this.$refs.drawer.nativeView.open(side); }, close(side) { return this.$refs.drawer.nativeView.close(side); }, isOpened(side) { return this.$refs.drawer.nativeView.isOpened(side); }, toggle(side) { return this.$refs.drawer.nativeView.toggle(side); }, }, }; //# sourceMappingURL=component.js.map