sliderticks
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sliderticks [2022/09/29 17:25] – [sliderTicks - add top and/or bottom tick marks for slider grid lines] admin | sliderticks [2023/03/09 17:26] (current) – admin | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| ===== Set-up Instructions ===== | ===== Set-up Instructions ===== | ||
| ==== Survey Header ==== | ==== Survey Header ==== | ||
| - | To make the function available to all questions in the survey, copy the function to the Survey Header inside a script tag: | ||
| Add the sliderTicks function to the survey header to make it available to any question in the survey. | Add the sliderTicks function to the survey header to make it available to any question in the survey. | ||
| < | < | ||
| Line 55: | Line 54: | ||
| **tickChar** is the character used for tick marks. | **tickChar** is the character used for tick marks. | ||
| - | Default: " | + | Default: |
| ==== tickPadding ==== | ==== tickPadding ==== | ||
| **tickPadding** is an object of arrays that allows for tick marks to be adjusted to align with the center of the slider handle at each gridline. The adjustments specified in **tickPadding** are the differences in positioning from the number scale. Each **tickPadding** array consists of an object specifying the side of the adjustment (left or right) and the size of the adjustment in pixels. For example, a function call specifying **tickPadding** for a 3-point scale would look like this: | **tickPadding** is an object of arrays that allows for tick marks to be adjusted to align with the center of the slider handle at each gridline. The adjustments specified in **tickPadding** are the differences in positioning from the number scale. Each **tickPadding** array consists of an object specifying the side of the adjustment (left or right) and the size of the adjustment in pixels. For example, a function call specifying **tickPadding** for a 3-point scale would look like this: | ||
sliderticks.1664486707.txt.gz · Last modified: by admin
