siemens / ix

Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
https://ix.siemens.io/
MIT License
197 stars 65 forks source link

Camel case events #1358

Closed kennycallado closed 3 months ago

kennycallado commented 3 months ago

Prerequisites

Suggestion / feature request

Would it be possible to enhance the components for better integration with htmx by triggering events in kebab-case? This would allow events to be captured with hx-on:value-change="console.log('Hello, world!')".

Since version 2.0, hx-on="valueChange: console.log('¡Hola, mundo!')" has been deprecated, as per the hx-on documentation.

Thanks for your such a great library.

danielleroux commented 3 months ago

Hi @kennycallado

we can not do that this will have a major impact of the library and all other users but i checked the htmx documentation how did you come to the conclusion that the event syntax will be deprecated?