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

Feature skip all button implemented #75

Closed

Conversation

imVinayPandya
Copy link

I have added skip all button, which will show up on first steps of Walkthrough.

Reason for implementing "Skip All" button: I was using this plugin with ionic 3 mobile apps. I don't need the close button because of close button position. at close button position in mobile, I need to place one highlighted tooltip. which is overlapping close button. that is why I added skip all button on the first step which allows the user to close Walkthrough at first step.

@jwarby
Copy link
Owner

jwarby commented Apr 15, 2018

Hey @imVinayPandya, cheers for this PR. Left a couple of review points, but it also looks like you may have branched off master instead of dev because it's pulled in a couple of release merges. If so, could you branch off dev and Git cherry-pick your changes into the new branch please?

@imVinayPandya
Copy link
Author

@jwarby okay I will do that. Thank you

@imVinayPandya
Copy link
Author

@jwarby I have created a new branch from dev and cherry picked my commits as you suggested and for that, I have created new pull request here: #76

you can delete this pull request.

Thank you so much.

Copy link
Owner

@jwarby jwarby left a comment

Choose a reason for hiding this comment

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

Hey @imVinayPandya, sorry I added these review comments the other day but didn't realise I had to submit the review as well (first time using this feature!). Could you apply the requested changes from this review onto your new PR please? 😄

show: function() {
return isFirstStep();
}
},
Copy link
Owner

Choose a reason for hiding this comment

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

I think we should default this to false, chances are that existing users probably won't want this functionality to be turned on by default.

Copy link
Author

Choose a reason for hiding this comment

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

okay that's okay i can do that.

@@ -889,6 +890,10 @@
/* Close and finish tour buttons clicks */
$(document).on('click', '#jpwClose, #jpwFinish', methods.close);

/* Skip All to skip all tour steps
*/
$(document).on('click', '#jpwSkipAll', methods.close);
Copy link
Owner

Choose a reason for hiding this comment

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

I guess we can probably move this selector into the one above (ie with #jpwClose and #jpwFinish) since they're both calling methods.close.

Copy link
Author

Choose a reason for hiding this comment

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

oooppps! okay i missed that.

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.

2 participants