Skip to content

How to add keyup or keydown events to the virtual scroller? Programmatically or on template? #349

@slidenerd

Description

@slidenerd

  <virtual-list
    :style="style"
    scrollable
    :data-key="'uid'"
    :data-sources="items"
    :data-component="itemComponent"
    :footer-class="'loader-wrapper'"
    v-on:tobottom="onScrollToBottom"
    @keydown='onKeyDown'
  >
    <div slot="footer" class="loader"></div>
  </virtual-list>

I basically want to use the arrow keys to scroll up and down instead of the scrollbar. How do I achieve this with the virtual scroll list?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions