Skip to content

Allow slide step prefix and suffix #173

@swashbuck

Description

@swashbuck

Subject of the enhancement

We would like to be able to add a prefix and suffix to each step of the slider. Since _scaleStart, _scaleEnd and _scaleStep must be numeric, we can't use values in other formats (ex. currency).

I would propose adding scaleStepPrefix and scaleStepSuffix as new JSON options.

"scaleStepPrefix": "$",
"scaleStepSuffix": "K",

Would anyone else find this feature useful? If so, I will create a PR.

Screenshots

Example (dollars in thousands):
dollars

Example (voltage):
voltage

Example (measurement in inches):
inches

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions