vue-c3 icon indicating copy to clipboard operation
vue-c3 copied to clipboard

Why using a handler instead of the ref to the component?

Open vibou opened this issue 5 years ago • 4 comments

I really like the way you did the component. It's not very vue like but giving stuff to the chart using the handler is quite smart and at least it gives the opportunity to fully use c3 through this process ! Well done.

However I was wondering why do you use an external handler to handle event whereas one could have send event directly to the component using $refs ?

vibou avatar Nov 16 '18 11:11 vibou

+1

SacDin avatar Nov 19 '18 07:11 SacDin

Thank you for the suggestion. I'll try to do it with refs.

biering avatar Nov 19 '18 10:11 biering

You can wrap it into component which will make handler inside and provide ref API to parent component.

SacDin avatar Nov 20 '18 05:11 SacDin

The 1.2.10 stop using handler right ? You should update documentation according to this because now it's not working anymore. It says INIT is not possible.

vibou avatar Nov 30 '18 15:11 vibou