UNPKG

angular-shepherd

Version:

An Angular wrapper for the site tour library Shepherd.

15 lines (14 loc) 621 B
import type { StepOptionsButton } from 'shepherd.js'; import type { ShepherdService } from '../shepherd.service'; export type AngularShepherdButton = StepOptionsButton & { type?: 'back' | 'cancel' | 'next'; }; /** * Creates a button of the specified type, with the given classes and text * * @param button.type The type of button cancel, back, or next * @param button.classes Classes to apply to the button * @param button.text The text for the button * @param button.action The action to call */ export declare function makeButton(this: ShepherdService, button: AngularShepherdButton): AngularShepherdButton;