StepOptionsButton
Properties
action()?
optionalaction: (this) =>void
A function executed when the button is clicked on
It is automatically bound to the tour the step is associated with, so things like this.next will
work inside the action.
You can use action to skip steps or navigate to specific steps, with something like:
action() { return this.show('some_step_name');}Parameters
• this: Tour
Returns
void
Defined in
docs-src/node_modules/shepherd.js/src/step.ts:259
classes?
optionalclasses:string
Extra classes to apply to the <a>
Defined in
docs-src/node_modules/shepherd.js/src/step.ts:264
disabled?
optionaldisabled:boolean| () =>boolean
Whether the button should be disabled
When the value is true, or the function returns true the button will be disabled
Defined in
docs-src/node_modules/shepherd.js/src/step.ts:270
label?
optionallabel:StringOrStringFunction
The aria-label text of the button
Defined in
docs-src/node_modules/shepherd.js/src/step.ts:275
secondary?
optionalsecondary:boolean
A boolean, that when true, adds a shepherd-button-secondary class to the button.
Defined in
docs-src/node_modules/shepherd.js/src/step.ts:280
text?
optionaltext:StringOrStringFunction
The HTML text of the button
Defined in
docs-src/node_modules/shepherd.js/src/step.ts:285