You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 jaren geleden
123456789101112131415161718192021222324252627
  1. import * as I from '../interfaces/';
  2. import { TrackDirection } from './direction';
  3. import { ScrollbarThumb } from './thumb';
  4. export declare class ScrollbarTrack implements I.ScrollbarTrack {
  5. readonly thumb: ScrollbarThumb;
  6. /**
  7. * Track element
  8. */
  9. readonly element: HTMLDivElement;
  10. private _isShown;
  11. constructor(direction: TrackDirection, thumbMinSize?: number);
  12. /**
  13. * Attach to scrollbar container element
  14. *
  15. * @param scrollbarContainer Scrollbar container element
  16. */
  17. attachTo(scrollbarContainer: HTMLElement): void;
  18. /**
  19. * Show track immediately
  20. */
  21. show(): void;
  22. /**
  23. * Hide track immediately
  24. */
  25. hide(): void;
  26. update(scrollOffset: number, containerSize: number, pageSize: number): void;
  27. }