soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
315 stars 29 forks source link

Ability to use Alpine.js via Advanced -> Attributes #2846

Open Ratko-Solaja opened 2 years ago

Ratko-Solaja commented 2 years ago

Describe the feature you'd like to see included in Oxygen. I would love to use Alpine.js inside Oxygen trough the Attributes option found under Advanced. At the moment that's not possible because there's a sanitization/validation of the Attribute Name field which prevents usage of certain Alpine.js chars such as : and @.

I think enabling this would be as simple as changing the RegEx code for the field in all the places it needs to be changed, so, maybe have this in 4.0 version?

What are the use cases for this feature? Building websites faster. I think it's far more simpler to just pop in some action trough @click directive rather than writing JS trough the JS section.

Examples of this feature or functionality. Nothing...

mallettejp commented 2 years ago

+1

This would be extremely useful!

skrypt-nl commented 2 years ago

Wondering why this hasn't been implemented yet. Attributes with @ or : characters in their names are valid attributes, but still, we cannot add them in Oxygen.

skrypt-nl commented 1 year ago

Any update on this?