@dopt/semantic-data-layer-tour
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

@dopt/semantic-data-layer-tour

An interface definition for Dopt's tour and tour item components.

export interface Tour {
  id: string;

  items: TourItem[];

  active: boolean;

  completed: boolean;
  dismissed: boolean;

  complete: () => void;
  dismiss: () => void;

  size: number;

  filter(on: FilterableField): TourItem[];
  count(where: CountableField): number;
}

export interface TourItem {
  id: string;

  tour: Tour | undefined;

  index: number | null | undefined;

  title: string | null | undefined;
  body: RichText | null | undefined;

  nextLabel: string | null | undefined;
  backLabel: string | null | undefined;

  active: boolean;

  completed: boolean;

  next: () => void;
  back: () => void;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @dopt/semantic-data-layer-tour

Weekly Downloads

1,610

Version

0.3.3

License

MIT

Unpacked Size

5.81 kB

Total Files

10

Last publish

Collaborators

  • kseth
  • alexchantastic
  • pankaj-avhad-dopt
  • chasebish
  • joemckenney