Skip to content
New issue

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

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

Already on GitHub? # to your account

NativeScript Vue Pager issues with spacing, peaking and disable swipe #20

Open
dangrima90 opened this issue Jul 5, 2022 · 0 comments
Open

Comments

@dangrima90
Copy link

dangrima90 commented Jul 5, 2022

Hi I'm using the Pager in a NativeScript Vue application but I'm facing some problems with some of the component's properties. So far I've been testing on Android - using version 13.0.37.

  1. Setting spacing and/or peaking does not render items properly on load

    <Pager
      for="item in list"
      height="100%"
      spacing="5%"
      peaking="10%"
      :showIndicator="true"
      :canGoRight="false"
      indicatorColor="white"
      indicatorSelectedColor="gray"
      :selectedIndex="selectedIndex"
    >
      <v-template>
        <StackLayout height="90%" :class="$index % 2 === 0 ? 'bg-yellow-300' : 'bg-forest-green-400'" />
      </v-template>
    </Pager>

    The above code sets spacing to 5% and peaking to 10%. Here's a video to show case the result - here the selected item is at index 2:

    Screen.Recording.2022-07-05.at.10.52.51.mov

    You will notice that there is no space between the pager items - once you start swiping the space is then taken into consideration.

  2. Setting canGoLeft / canGoRight to false doesn't seem to work

    The Pager in code and video show above has the canGoRight property set to false, however I am allowed to swipe to the right. Are there some other properties that should be set please?

@dangrima90 dangrima90 changed the title NativeScript Vue Pager issues with spacing, padding and disable swipe NativeScript Vue Pager issues with spacing, peaking and disable swipe Jul 5, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant