vimeshjs / vimesh-ui

Vimesh UI is an ultra lightweight library to build UI components for Alpine.js
MIT License
125 stars 5 forks source link

x-modelable #12

Closed ericxin1982 closed 9 months ago

ericxin1982 commented 9 months ago

image

x-modelable this one is like x-model?

Thanks Eric Xin

xinjie-zhang commented 9 months ago

x-model is used for html input controls. x-modelable is used when you make input control-like component from normal tag, like div etc. It is part of alpine.js official directives : https://alpinejs.dev/directives/modelable

ericxin1982 commented 9 months ago

I forgot that usage since I do not know why that exists, and your script has this, and as I read again, I thought I understand already. Thanks for your help.