This `Dial` widget example shows the following:
Notice the Dial can traverse the entire 6,000+ pixels of the scene height, but by pulling the handle farther away from the Dial's center while rotating, the user can get 1 pixel movements, without strain. After the dial has focus, the following keys also opperate the Dial, arrow up/down/left/right, page up/down, home, end. The action of these keys can be controlled via Dial's configuration attributes.
The `valueChange` event of a `Dial` can be the means of controlling other UI displayed on a page.
The only markup requirement for the `Dial` itself is an element to contain the Dial. The rest of the markup and CSS in this example is just for the Hubble telescope visualization.
``` {{>dial-basic-markup}} ```This example builds on previous examples by showing how to modify the visible UI strings before the dial renders.
During instatiation of a Dial, several configuration attributes can be set (see the code-block below); note the construction-time event subscription:
``` {{>dial-interactive-script}} ```Preceding the code that instantiates the `Dial` widget, declare the event handler. We can use the value of the `Dial` to do whatever we want, but in this example the event handler updates the CSS `top` property of the pictorial scene `