Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to specify container element for the modal #474

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

genadis
Copy link
Contributor

@genadis genadis commented Aug 1, 2019

We don't always want to append to modal to the body, in some cases we need it to be child of other container element. (for steps we have appendTo tippy option).

@@ -46,6 +46,8 @@ export class Tour extends Evented {
* @param {boolean} options.useModalOverlay Whether or not steps should be placed above a darkened
* modal overlay. If true, the overlay will create an opening around the target element so that it
* can remain interactive
* @param {HTMLElement} options.modalContainer Optional container Element for the modal.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will document it, no worries!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@RobbieTheWagner RobbieTheWagner changed the title add option to specify container element for the modal Add option to specify container element for the modal Aug 1, 2019
@RobbieTheWagner RobbieTheWagner merged commit 0173483 into shipshapecode:master Aug 1, 2019
@genadis genadis deleted the modal-container branch August 1, 2019 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants