Skip to content

Compatibility with RadSideDrawer in a NS-Vue app? #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
michaelsmedley opened this issue Dec 9, 2020 · 2 comments
Closed

Compatibility with RadSideDrawer in a NS-Vue app? #66

michaelsmedley opened this issue Dec 9, 2020 · 2 comments

Comments

@michaelsmedley
Copy link

Hi

I have an app that is using the RadSideDrawer component to open up a sidebar on button click. I am struggling to get this to work with the setup I have.

My App.vue template currently looks like this:

<template lang="html">
<RadSideDrawer
    ref="drawer"
    drawerLocation="Left"
    gesturesEnabled="true"
    :drawerTransition="transition"
  >
    <StackLayout ~drawerContent backgroundColor="#ffffff">
      <slot name="drawerContent" />
    </StackLayout>
    <Frame ~mainContent ref="drawerMainContent">
      <slot name="mainContent" />
    </Frame>
  </RadSideDrawer>
  
</template>

So my initial instinct was to replace the tag with the tag, however this just loads a blank screen for me. If I move the above RadSideDrawer logic into a page (such as ./components/HomePage.vue) then the app crashes instantly for me.

Any help will be much appreciated

@rigor789
Copy link
Member

If you are using the navigator - replace

<Frame ~mainContent ref="drawerMainContent">
  <slot name="mainContent" />
</Frame>

with

<Navigator ~mainContent  />

But that may not be all - share more of the project if still having issues. (This is easier to answer on Slack/Discord rather than an issue)

@michaelsmedley
Copy link
Author

@rigor789 Hey, I really appreciate the response.

That simple line you sent me seems to have done the trick, at least for the few different frames I have tried!

Many thanks again - you have spared me several more hours looking into it!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants