vue-tour
vue-tour copied to clipboard
add: feature to target groups
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.
*/
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...
Any feedback on this one?