tuil
ReferencePackages@mwillbanks/tuil-inkAPI

TerminalScrollAreaOptions

interface exported by @mwillbanks/tuil-ink.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-ink.

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

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" | "right" | "bottom" | "left", boolean>> | undefinedNoThe sticky member uses the Partial<Record<"top" | "right" | "bottom" | "left", boolean>> | undefined contract.
followFocusboolean | undefinedNoThe followFocus member uses the boolean | undefined contract.
enabledboolean | undefinedNoThe enabled member uses the boolean | undefined contract.
initialPosition&#123; readonly x?: number; readonly y?: number; &#125; | undefinedNoThe initialPosition member uses the &#123; readonly x?: number; readonly y?: number; &#125; | 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.

No package-local related types.

Source

View the secondary source reference

Package

@mwillbanks/tuil-ink

On this page