gethuman / nativescript-sidedrawer

SideDrawer menu plugin for Nativescript - iOS/Android
Other
41 stars 10 forks source link

how can i use this plugin with nativescript with vanilla javascript project #9

Closed webenformasyon closed 7 years ago

roblav96 commented 7 years ago

@webenformasyon exactly how the example shows

webenformasyon commented 7 years ago

is this vanilla js ? import { TnsSideDrawer } from 'nativescript-sidedrawer'

Mathijs003 commented 6 years ago

How to implement the functions

export function onLoaded(args: EventData) { let page: Page = args.object TnsSideDrawer.addGesture(page) } export function onUnloaded(args: EventData) { let page: Page = args.object TnsSideDrawer.removeGesture(page) }

in core nativescript ?

I've implemented

exports.onLoaded = function(args){ var page = args.object.page; sd.TnsSideDrawer.addGesture(page) }

exports.onUnloaded = function (args) { var page = args.object.page sd.TnsSideDrawer.removeGesture(page) }

But not working so far