The sliderSize attribute defines the width and height of the bounding rectangle of the slider control on a slider survey item.
<slider>
or
/ sliderSize = (widthexpression, heightexpression)Name | Type | Description |
---|---|---|
width | extent | The width of the slider in pixels (default), percent, or points. |
height | extent | The height of the slider in pixels (default), percent, or points. |
widthexpression | value | An expression resolving to the width of the slider in pixels (default), percent, or points. If width is set to null and a height is specified, the width is set to the pixel size of the height. |
heightexpression | value | An expression resolving to the height of the slider in pixels (default), percent, or points. If height is set to null and a width is specified, the height is set to the pixel size of the width. |
The sliderSize attribute allows the slider control to be scaled to the desired size for a questionnaire, independent of the size of the slider question.
The following presents a slider question, with the slider sized to 200 by 20 pixels.
<slider question1>
/ caption = "Rate the movie you just watched.
/ sliderSize=(200, 20)
/ options = ("vanilla", "chocolate", "strawberry", "mint chip")
</slider>