Activating Subcomponent onclick

It’s been awhile, but I think that you define the onClick function on the parent (outermost) DC component, and refer to the subcomponent’s Z attribute.

=ONCLICK(ANIMATECUSTOM("Cab!Z", 5, 100, 100, "BottomFloor", "TopFloor"))

IE, Animate the “Cab” subcomponent, over a time of 5 seconds (easein and easeout at maximum) between the z values of “BottomFloor” and “TopFloor” hidden attributes of the parent component. (At least this is what I’m trying to show. You could use literal z values if you prefer. If you wish the cab to stop at multiple floors [per each click,] add more stops to the parameter list between “BottomFloor” and “TopFloor”.)

In this category is a pinned thread of wiki lists for your enjoyment …

2 Likes