-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(slider): add support for custom label formatting (#9179)
**Related Issue:** #4004 ## Summary Adds `labelFormatter` prop to allow customization of handle and tick labels. ```ts interface CalciteSlider { /** * Formatter for custom handle/ticks labels. * * If the returned value is a string, it will get used in the label, * and if it is `undefined`, it will use the default, formatted label. */ labelFormatter( // the associated label value value: number, // the label type type: "min" | "max" | "value" | "tick" // the default formatter (configured with corresponding locale, numbering system and group separator defaultFormatter: (value: number): string; ): string | undefined; } ```
- Loading branch information
Showing
4 changed files
with
266 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters