Spin right button spin-right-button
Clicking or tapping this button spins the image to the right in main view. This button is not displayed on mobile phones in order to save screen real estate. Also, the button is hidden when a multi-dimensional spin set is used. You can size, skin, and position the button using CSS.
CSS properties of the spin buttons
The button is added to an internal container that is DIV controlled with the CSS class selector:
.s7spinviewer .s7spinbuttons
The appearance of this button inside the container is controlled with the CSS class selector:
.s7spinviewer .s7spinbuttons .s7panrightbutton
Position inside artwork sprite, if CSS sprites are used.
See CSS Sprites.
state
attribute selector, which can be used to apply different skins to different button states.The button tool tip can be localized. See Localization of user interface elements for more information.
Example - To set up a spin right button that is 28 x 28 pixels, and positioned on the right edge of inner container. And finally, displays a different image for each of the four different button states:
.s7spinviewer .s7spinbuttons .s7panrightbutton {
position:absolute;
right: 0px;
width:28px;
height:28px;
background-size:contain;
}
.s7spinviewer .s7spinbuttons .s7panrightbutton[state='up'] {
background-image:url(images/v2/SpinRightButton_light_up.png);
}
.s7spinviewer .s7spinbuttons .s7panrightbutton[state='over'] {
background-image:url(images/v2/SpinRightButton_light_over.png);
}
.s7spinviewer .s7spinbuttons .s7panrightbutton[state='down'] {
background-image:url(images/v2/SpinRightButton_light_down.png);
}
.s7spinviewer .s7spinbuttons .s7panrightbutton[state='disabled'] {
background-image:url(images/v2/SpinRightButton_light_disabled.png);
}