Eatham
Explore posts from serversUsing Kobalte, am trying to use the Tooltip. But I don't like how the trigger is a button.
Here is the source code to the trigger: https://github.com/kobaltedev/kobalte/blob/main/packages/core/src/tooltip/tooltip-trigger.tsx
The trigger is the object the "triggers" the tooltip to appear. However I want to have the tooltip work on my own components and don't want to have my own component within a button.
So I decided to try and modify kobalte's code to work with my own. However the problem now is that I don't know the best way to implement it so that the tooltip works with anything I set to be the trigger. Thanks
5 replies
Difference between using `const` and `function` to declare a function
I am relatively new to JavaScript and in my time learning I have noticed that people decalare their functions/components using
const
and also function
.
E.g. Using function
And using const:
What are the differences between the two and why would I use one over the other? Thanks 🙂3 replies
What do you recommend for drag and drop capabilities?
I am creating an app using tauri and solid for my frontend. And am wanting to have the ability to drag and drop between windows. Currently my best option is to use the HTML Drag and Drop API to transfer data across different pages (each window is a different site). The api is good for transfering data, but it doesn't look that good compared to what you get from DND libraries. The downside to those libraries is that you can't transfer data between sites (could be wrong).
5 replies
Was watching Theo's video and wondered if solid had a good way to do this
https://youtu.be/jYV1VDhw7E8?t=447
It involves saving a state when a components moves position in the DOM. Theo will explain it way better than I ever could
9 replies