Tour Modal | Web Component

Please see the Tour component for an example of what it looks like to use the dk-tour-modal.

Slots

To make use of a slot, add the slot="NAME" to any kind of element that you want inserted into the slot of the web component. A slot allows you to control the markup and styling of what content you put into it.

 <div slot="slot-name">Additional Markup</div>
SlotDescription
contentUse this slot to insert the text content for your step.
step-imgUse this slot with an img element to insert an image to your modal step.

Properties

Use properties and attributes to control the web component as well as pass required data to it. Some properties won't have an attribute name, this is because to use that property you can't use it as an html attribute it must be set using javascript as a property of the element.

PropertyAttributeDescriptionTypeDefault
backTextback-textSet what text should be in the button that is used for the back actionstringnull
dismissTextdismiss-textSet what text should be in the button that is used for the dismiss actionstringnull
isOpenopenThis prop reflects the open/closed state of the callout. You can set this property to control if the callout is opened or closed.booleanfalse
nextTextnext-textSet what text should be in the button that is used for the next actionstringnull