Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Beta2
-
Fix Version/s: 2.0.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:jsf2.0, ICEfaces2.0, ACE
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial, Compatibility/Configuration
Description
Currently, the sliderEntry requires that the user specify a thumb image using the component's "thumbUrl" attribute.
Since this property is not likely to change unless the skin or image has changed, we should modify the component to use a thumb image specified in the skin CSS instead of the component attribute (remove comp. attribute).
link to show an example of the css classes to use is:-
http://developer.yahoo.com/yui/3/examples/slider/slider_from_markup.html
NOTE: The key requirement here is that we do not want to force the user to have to specify a thumb image as an attribute of the component. Instead, the skin CSS should specify the thumb image to use.
Is there a technical reason why this cannot be supported?
Since this property is not likely to change unless the skin or image has changed, we should modify the component to use a thumb image specified in the skin CSS instead of the component attribute (remove comp. attribute).
link to show an example of the css classes to use is:-
http://developer.yahoo.com/yui/3/examples/slider/slider_from_markup.html
NOTE: The key requirement here is that we do not want to force the user to have to specify a thumb image as an attribute of the component. Instead, the skin CSS should specify the thumb image to use.
Is there a technical reason why this cannot be supported?
Here is a snippet to set thumb image using css. For both X and Y axis.
/* this is to hide button image */
{ top: -225px; }.yui3-slider-x .yui3-slider-rail .yui3-slider-thumb img
/* set the slide image using css */
{ background: url("./css/images/bullet.gif") no-repeat 0px 4px; height: 57px; width: 10px; }.yui3-slider-x .yui3-slider-rail .yui3-slider-thumb
/* above classes for Y */
.yui3-slider-y .yui3-slider-rail .yui3-slider-thumb img
{ top: -225px; }.yui3-slider-y .yui3-slider-rail .yui3-slider-thumb
{ background: url("./css/images/bullet.gif") no-repeat; height: 10px; width: 10px; }Please see the video:
http://screencast.com/t/2V428d6v49