-
Notifications
You must be signed in to change notification settings - Fork 12
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
PhET-iO Design for Carousel #736
Comments
@samreid, can you take the lead on this since you are working on this with CCK? Let me know if you would like assistance. |
I completed all the requests above except for:
There is difficulty in this request, since PageControl can be used to control any item and Carousel doesn't define how PageControl layout works. Here are some options:
My recommendation is that the current implementation is very flexible. Showing the page control outside of the carousel tandem seems reasonable to me, since they are side by side. We could introduce a carouselContainer node that contains both if the user needs one shutoff valve. But also, I don't think it's too much to ask a client to hide the carousel and the page controls if that is the desired behavior. Ready for review and discussion. |
@samreid I reviewed in CCK:DC, and the carousel looks great! Thanks for providing more context around PageControl. I don't think we should force it anywhere or wire it up in an unorthodox way.
Currently |
In the commit, I instrumented |
Thanks @samreid. I think |
Sounds good, thanks! I also noted that the |
Related to phetsims/circuit-construction-kit-common#513
Here's an example of what carousel currently looks like in CCK: DC:
Questions:
balancingAct.balanceLabScreen.view.massCarousel.brickStackCreatorNode1
). However, I'm not sure, since that sim is ancient PhET-iO and possibly a non-standard carousel to boot.pageControl
is not a child of thecarousel
? You can hide the carousel, but leave behind the dots which seems very weird to me.Long-term wishlist:
Desired changes:
carousel.visibleProperty
phetioFeatured: true by defaultcarousel.pageNumberProperty
phetioFeatured: true by defaultcarousel.nextButton.enabledProperty
andcarousel.previousButton.enabledProperty
should be phetioReadOnly: true (otherwise causes problems like Carousel's Next/Previous buttons do not stay disabled in Studio circuit-construction-kit-common#844 and Going to a non-existent carousel page freezes sim circuit-construction-kit-common#848)carousel.nextButton.enabledProperty
andcarousel.previousButton.enabledProperty
phetioFeatured: false by default. I know they inherit the phetioFeatured behavior from buttons, but in this case, it doesn't make sense to feature something that is read-only. If this can't be done within carousel itself, designers can un-feature it in the overrides instead.pageControl
a child ofcarousel
.pageControl.visibleProperty
phetioFeatured: true by defaultvisibleProperty
of each Node within the carousel phetioFeatured: true by default. (If this is a sim-specific thing, designers can handle it in the overrides.)Assigning to @zepumph and @samreid. Happy to discuss further on a call or at PhET-iO meeting if these requests are unclear/unreasonable.
The text was updated successfully, but these errors were encountered: