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: feature to target groups #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

june07
Copy link

@june07 june07 commented Dec 31, 2021

Element groups can now be targeted using class selectors.

/**
 * Given a target class selector, wrap the elements identified by the selector, and
 * insert the wrapped elements at the beginning of the parent. Additionally set the
 * id attribute on the wrapper element.
 * Note: This will likely be ugly if the target elements aren't next to each other.
 */

@june07
Copy link
Author

june07 commented Dec 31, 2021

Just some background on why this was needed...

Rendering form elements in a loop make it difficult and very ugly (code mess) to group (grouping per vue-tour) select elements from all elements in the loop. This makes it a simple case of adding a class to the items I need to group and now vue-tour will treat the individual form elements as a group!

Hopefully that was clear...

@june07
Copy link
Author

june07 commented May 11, 2022

Any feedback on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant