tuil
ReferencePackages@mwillbanks/tuil-scrollAPI

ScrollAreaOptions

interface exported by @mwillbanks/tuil-scroll.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-scroll.

export interface ScrollAreaOptions {
  readonly id: string;
  readonly viewport: ScrollViewport;
  readonly extent: ScrollExtent;
  readonly parentId?: string;
  readonly sticky?: Partial<
    Record<"top" | "bottom" | "left" | "right", boolean>
  >;
  readonly followFocus?: boolean;
}

Members

MemberTypeRequiredDescriptionRelated types
idstringYesThe id member uses the string contract.
viewportScrollViewportYesThe viewport member uses the ScrollViewport contract.ScrollViewport
extentScrollExtentYesThe extent member uses the ScrollExtent contract.ScrollExtent
parentIdstring | undefinedNoThe parentId member uses the string | undefined contract.
stickyPartial<Record<"top" | "bottom" | "left" | "right", boolean>> | undefinedNoThe sticky member uses the Partial<Record<"top" | "bottom" | "left" | "right", boolean>> | undefined contract.
followFocusboolean | undefinedNoThe followFocus member uses the boolean | undefined contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-scroll

On this page