Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: calcite-slider - custom tick label formatters #2584

Closed
hccampos opened this issue Jul 21, 2021 · 3 comments
Closed

Enhancement: calcite-slider - custom tick label formatters #2584

hccampos opened this issue Jul 21, 2021 · 3 comments
Labels
0 - new New issues that need assignment. c-slider Issues that pertain to the calcite-slider component enhancement Issues tied to a new feature or request. p - high Issue should be addressed in the current milestone, impacts component or core functionality
Milestone

Comments

@hccampos
Copy link

hccampos commented Jul 21, 2021

Description

For certain use cases the default tick labels don't work well. For example, one may want to display textual labels rather than numerical ones.

It would be great to be able to format slider tick labels. This is already possible in the JS API Slider widget by using a labelFormatFunction: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelFormatFunction

Which Component

  • <calcite-slider>

Example Use Case

  • Settings slider in the Web SceneViewer
    Screen Shot 2021-07-21 at 10 32 38

  • Time sliders as in the Daylight slider of the JS API:
    Screen Shot 2021-07-21 at 10 33 30

SVCH

@hccampos hccampos added 0 - new New issues that need assignment. enhancement Issues tied to a new feature or request. needs triage Planning workflow - pending design/dev review. labels Jul 21, 2021
@jcfranco jcfranco changed the title calcite-slider - custom tick label formatters Enhancement: calcite-slider - custom tick label formatters Jul 29, 2021
@jcfranco jcfranco added this to the Backlog milestone Jul 29, 2021
@jcfranco jcfranco removed the needs triage Planning workflow - pending design/dev review. label Jul 29, 2021
@richiecarmichael
Copy link

For certain use cases the default tick labels don't work well.

I would argue that the default tick labels don't work well for most use cases. For example:

  • 1669231079644 to "11/23/2022"
  • 1669231079644 to "11:18am"
  • 0, 1, 2 to "low", "medium and "high"
  • 1000000 to 1M
  • 1000000 to $1,000,000

This would be really useful for #46032.

@ubatsukh
Copy link

@driskull as we discussed yesterday this is a high priority issue for us! MV needs Range Slider for multidimensional image services and the API implementation cannot proceed until the calcite slider has support for this.

@driskull driskull added the p - high Issue should be addressed in the current milestone, impacts component or core functionality label Nov 30, 2022
@geospatialem geospatialem added the c-slider Issues that pertain to the calcite-slider component label May 2, 2023
@jcfranco
Copy link
Member

Closing in favor of #4004.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. c-slider Issues that pertain to the calcite-slider component enhancement Issues tied to a new feature or request. p - high Issue should be addressed in the current milestone, impacts component or core functionality
Projects
None yet
Development

No branches or pull requests

7 participants