Skip to main content

Recent Activity

Recent Heroes of the BenNadel.com Community

Recent Comments

Ben Nadel replied to a post Recursive JSON Explorer In Alpine.js 3.13.5

My pleasure! The <template-root> thing is frustrating. And, it uses display:contents (to remove it from the document box model), which does have some issues. I'm not too familiar with the scope of the issues, but I believe they mostly relate to ARIA / accessibility stuff. If you look at CanIUse.com,... read entire comment from Ben Nadel.

Ben Nadel replied to a post Recursive JSON Explorer In Alpine.js 3.13.5

@Angelez, Yeah, I think that makes the most sense. At first, I tried to work around it by passing-down a valueProperty instead of a value; and then, trying to setup a $watch(valueProperty) callback that would populate the component-local value. The thought being that the $watch() would help propagat... read entire comment from Ben Nadel.

Angelez replied to a post Recursive JSON Explorer In Alpine.js 3.13.5

I solved the root re-rendering (when changing some nested property) problem by basically destroying the tree and reconstructing it using the same logic in the template directive. For me, this was only an issue when part of the tree is deleted so I decided to reconstruct the whole tree from root when... read entire comment from Angelez.

Angelez replied to a post Recursive Template Rendering In Alpine.js 3.13.5

Amazing work sir! I'm starting to put together an internal tool for my company to create custom query filters. I can't believe you came up with did just a couple days before I google "recursive components in alpinejs". This would have been a lot of work! Thank you very much for sharing this!... read entire comment from Angelez.

figital replied to a post Recursive Template Rendering In Alpine.js 3.13.5

Thanks for posting your code here (I had seen the video elsewhere). I'm often fiddling with recursive trees using JSON and (especially) SQL. Have always wanted to experiment with a UI tool for importing / exporting such things. Everything in the universe seems to be a recursive list of recursive lis... read entire comment from figital.

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel