@dopt/semantic-data-layer-tour
v0.3.3
Published
An interface definition for Dopt's tour component
Downloads
1,137
Readme
@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;
}