Skip to content

VaScrollbar component rework #1695

Open
@aluarius

Description

@aluarius

Live examples:

References:

Props:

  • alwaysVisible: boolean - flag, indicating if scrollbar should be always visible.
  • delay: number - disappear (after container size change, after scroll) delay in ms.
  • dark: boolean - notifies scrollbar, that content has dark background.
  • tag: string - element tag (div as default).
  • speed: number - scroll speed for scrollTo, setScrollTop & setScrollLeft methods.

Emits:

  • on:scroll: object - payload contains information about current scroll state (vertical/horizontal position in px, vertical/horizontal scroll progress in px, vertical/horizontal scroll progress in %, height/width of the container in px).

Mehods:

  • getScroll - the same as on:scroll object.
  • scrollTo - scroll by { x, y } coordinates.
  • setScrollTop - set y scroll value (mb it's redundant).
  • setScrollLeft - set x scroll value (mb it's redundant).

Usage example:

<va-scrollbar always-visible class="classes overriding-classes">
  Long content.
</va-scrollbar>

Notes

Metadata

Metadata

Assignees

Labels

componentIs a new component or part of existing oned4: hardFast monsters, respawning turrets, templars, reavers, crusaders, and inquisitorsdesignRequires designv2: nice to haveThis will make Vuestic feel better

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions