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

Format tooltip #4

Open
quevlu opened this issue Jun 24, 2020 · 1 comment
Open

Format tooltip #4

quevlu opened this issue Jun 24, 2020 · 1 comment

Comments

@quevlu
Copy link

quevlu commented Jun 24, 2020

Hello, is there a possibility to add a format function in the tooltip message?

@pixelart7
Copy link

Stumbled with this for a while, I found a solution using the tooltips props.

For example:

Veeno(
  connect
  :tooltips="[{ to: (n) => n.toFixed(0) }, { to: (n) => n.toFixed(0) }]"
  :step="1"
  :options="{ start: yearRangeRaw, range: { min: 2400, max: (new Date()).getUTCFullYear() + 543 } }"
  :range="{ min: 2400, max: (new Date()).getUTCFullYear() + 543 }"
  @change="onYearRangeUpdate"
)

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

No branches or pull requests

2 participants