techstack icon indicating copy to clipboard operation
techstack copied to clipboard

Dynamically add data

Open bofeiw opened this issue 6 years ago • 4 comments

Hi,

The effect of this repo is great! And when I tries to add data after the page is first rendered, and not affect the existing circles, how should I do that? Currently I could only add data to the data array and re-render the whole again, but its not fluent. Could you kindly help on this?

Thanks!

bofeiw avatar May 05 '19 03:05 bofeiw

Hi. I just want to let you know that I read your request, but I'm currently focusing on something else and have no time to look at this at the moment.

I've already set a reminder and will go back at this sometime later. Please excuse me that I cannot help resolve your problem immediately.

trongthanh avatar May 07 '19 16:05 trongthanh

Thanks anyway. I’ve come up with an alternative to achieve this, add all data at first load, and set the size of unwanted elements to zero, and later change the sizes of these hidden elements. It may work for me but may not work for somebody else as it requires the data to be determined on load.

bofeiw avatar May 07 '19 21:05 bofeiw

@bofeiw can you send me an example

joesfeir21 avatar Dec 18 '19 12:12 joesfeir21

@bofeiw can you send me an example

@talianstallion The example is lost, but I wrote my own wheel which you can also use: https://github.com/bofeiw/floatingCircle

bofeiw avatar Dec 18 '19 13:12 bofeiw