How to bind element width, height to signal?
My <div>'s size will be changed by parent or css class.
I want to bind div's offsetWidth, offsetHeight to signal inside component.
Then I want to do something with the signals.
How can I do it?
I know there is 'ref' attribute.
But does ret update the signal when offsetWidth, offsetHeight is changed, too?
16 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@1.l Is solid-primitives worth to install? Do most solid developers use it? Is it official extension?
I have a experience, some library made by not offical team broken someday..
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
How about size? Is it small?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I see it's all seperate packages, Is there no ways just install 'npm install solid-packages' ? then 'import { something } from 'solid-packages'
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I really like liquid & aquaspirit. I always see you guys I make a questions..
You guys are life savor...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Are you just a user who use Solid like me? or ecosystem team?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I really love SolidJS. I want to stick to Solid for long time. Do you think I can use Solid next 5 years? I just started to use Solid for 5 days agao
Sorry for bad english
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I've used Svelte, But I saw whenever I add new svelte Component, it increases bundle size, while Solid made much more small bundle size, because it re-uses function, while Svelte copy the function entirely..
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Thanks liquid, aquaspirit. I just started to use createElementSize from primitives. I already love it... it's much better than creating my own... I trust solid community..It's suprisely easy to use..
The idea to make non-reactive properties to make reative properties are amazing..