Adyen / lume

Lume is a component library for visual representations of data, built for Vue with D3.
https://lumedataviz.com
MIT License
37 stars 1 forks source link

✨ Add update event for hoveredIndex #397

Closed joao-m-santos closed 5 months ago

joao-m-santos commented 5 months ago

Closes #394

πŸ“ Description

Added an update event for hoveredIndex (update:hoveredIndex) so that users can two-way bind this property.

Vue 2 example:

<lume-line-chart v-bind:hoveredIndex.sync="customIndex" />

<script setup>
const customIndex = ref(-1);
</script>

Vue 3 example:

<lume-line-chart v-model:hoveredIndex="customIndex" />

<script setup>
const customIndex = ref(-1);
</script>

πŸ’₯ Is this a breaking change (Yes/No):

πŸ“ Additional Information

Before submitting the PR, please make sure you do the following

netlify[bot] commented 5 months ago

Deploy Preview for adyen-lume ready!

Name Link
Latest commit 7c7ccce7c50a5f40089111912de1b3c63336e3ab
Latest deploy log https://app.netlify.com/sites/adyen-lume/deploys/65a949093add3b000890b9c1
Deploy Preview https://deploy-preview-397--adyen-lume.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.