-
Notifications
You must be signed in to change notification settings - Fork 45
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
Clarify/change builtInButtons #224
Comments
Recapping our recent discussions, the decision here appears to be just doing away with |
@BrianSipple @chuckcarpenter taking a quick look at the |
🤔 I'm definitely on the side of making separate functions for separate responsibilities. |
More to that point, I think this could be indicative of a good opportunity to refactor the // TODO: Figure out how to use a computed instead of an observer here
/**
* Create a tour object based on the current configuration
* @private
*/
stepsChange: observer('steps', function() {
this.initialize();
const steps = get(this, 'steps');
...
...
}), What if, instead of having an observer, we just made (I mean… how often would users be dynamically swapping new steps in and out? And is that the kind of usage we'd want to promote?) Such a function could then be our jumping off point for refactoring |
The idea behind the observer is you can always do |
I guess my feeling is aren't we trying to emulate the docs for Shepherd and make them work in Ember with some additional integration points? |
Also, I wonder if we should have the ability to add individual steps along the way, kind of as if a user took another path. This could just be done with |
I like the idea of |
You would do this currently by just pushing onto the steps array, and the observer would fire. @BrianSipple I think supporting all those sounds logical. I want to have an |
I think this is clearer for the user. Refactoring the addition of steps themselves in another issue. #241 |
We still call this
builtInButtons
, but it actually supports custom buttons too now, so we should update docs and possibly change the name.The text was updated successfully, but these errors were encountered: