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

feat: added tooltip format for Slider Component #394

Closed
wants to merge 8 commits into from
Closed

feat: added tooltip format for Slider Component #394

wants to merge 8 commits into from

Conversation

pkc918
Copy link
Member

@pkc918 pkc918 commented Jan 7, 2024

No description provided.

Copy link

netlify bot commented Jan 7, 2024

Deploy Preview for ikun-ui ready!

Name Link
🔨 Latest commit d789eb9
🔍 Latest deploy log https://app.netlify.com/sites/ikun-ui/deploys/659b8b4c0881390008d41cea
😎 Deploy Preview https://deploy-preview-394--ikun-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -16,6 +16,7 @@
export let attrs: KSliderProps['attrs'] = {};
export let cls: KSliderProps['cls'] = undefined;
export let showTooltip: KSliderProps['showTooltip'] = true;
export let format: KSliderProps['format'] = '';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, maybe my description of #342 is not accurate enough. It should actually be a function called format. The parameter is the current slider value and the return value is the user-defined formatted content.it might be something like this

format: (value: number) => number | string

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I got it

@pkc918 pkc918 closed this Jan 8, 2024
@pkc918 pkc918 deleted the slider branch January 8, 2024 05:46
@pkc918 pkc918 restored the slider branch January 8, 2024 05:46
@pkc918 pkc918 deleted the slider branch January 9, 2024 08:47
@pkc918 pkc918 restored the slider branch January 9, 2024 08:47
@pkc918 pkc918 deleted the slider branch January 9, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants