Active-CSS / active-css

The epic event-driven browser language for UI with functionality in one-liner CSS. Over 100 incredible CSS commands for DOM manipulation, ajax, reactive variables, single-page application routing, and lots more. Could CSS be the JavaScript framework of the future?
https://activecss.org
Other
42 stars 7 forks source link

Set up getEl and getEls as helper functions for all javascript expressions & run-type commands #277

Closed bob2517 closed 6 months ago

bob2517 commented 2 years ago

These helper functions should be there, as it would allow the ACSS special selectors to kick-in for things that the native querySelector can't handle yet, and tie into the ACSS scoped component rules for elements.

These can also be used in variable assignment alongside the new dollar variable syntax, which would give a handy way of fetching a DOM element or it's properties.

As an aside, the new dollar variable syntax on the latest branch makes it a lot easier to use variables, and a lot of testing and config development is occurring with these in different scenarios on different projects. All good so far.

If anyone has a question on how to use variables in a specific scenario, or is unclear of the rules, let me know and I'll pin the answer prior to the next release going live, which will be in a couple of months.

bob2517 commented 6 months ago

Closing - not convinced this is the best way to do it syntactically at the moment. Need a use case.