vue2-scrollspy icon indicating copy to clipboard operation
vue2-scrollspy copied to clipboard

Question: Is it possible to skip a section?

Open jclaessens97 opened this issue 6 years ago • 2 comments

First of all I want to mention that I have read this: You should have the same number of children elements for v-scroll-spy, v-scroll-spy-active v-scroll-spy-link for directives to work properly.

But I'm still wondering if there is a work around where I can tell vue2-scrollspy to skip a section? Right now I have following layout:

    <div class="fluid-container" v-scroll-spy="{offset: 90}">
        <Lead />
        <What />
        <Gamers />
        <Brands />
        <Services />
        <AboutUs />
        <Contact />
    </div>

Each component is a section, and everything is a menu item except 'What' which I'm trying to skip.

I read the docs a few times but I'm not really getting what following options do:

  • data: 'section'
  • allowNoActive
  • v-section-selector

I thought that when I mark the sections I want to be scrollable to with 'v-section-selector' it would work but it doesn't seem like it? If none of the options are capable of what I want to do can you propose a workaround that I can use?

Thanks in advance!

PS. Nice work on the library :)

jclaessens97 avatar Jul 15 '18 17:07 jclaessens97

@ibufu any updates on this issue? I'm stuck with a similar scenario.

RiaColaco05 avatar Jul 26 '21 10:07 RiaColaco05

@ibufu any updates on this issue? I'm stuck with a similar scenario.

What is the meaning of skip?

ibufu avatar Jul 26 '21 14:07 ibufu