You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Love your library, having a blast experimenting with Micronaut / JTE / htmx. The intelliJ plugin make the whole thing such a pleasure to use.
Thank you. ❤️
I have a little issue for which I'm having a hard time figuring out the most "elegant/keep it simple" solution.
I have an attribute which doesn't render due to Smart Attributes
and ValidState is supposed to drive the aria-invalid attribute:
publicenumValidState {
VALID,
INVALID,
DEFAULT
}
What do you think is the simplest/most elegant approach to be able to produce the following 3 states? (using Micronaut io.micronaut.views:micronaut-views-jte)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Love your library, having a blast experimenting with Micronaut / JTE / htmx. The intelliJ plugin make the whole thing such a pleasure to use.
Thank you. ❤️
I have a little issue for which I'm having a hard time figuring out the most "elegant/keep it simple" solution.
I have an attribute which doesn't render due to Smart Attributes
Moreover, I want an initial state without the attribute.
I'm using PicoCSS and they rely on
aria-invalid="false"
to display some green "valid" status: https://picocss.com/docs/forms.htmlThe subject in itself isn't that important and I explored hacks using String instead of boolean, but I feel like there must be something better.
My jte file looks like this
and ValidState is supposed to drive the
aria-invalid
attribute:What do you think is the simplest/most elegant approach to be able to produce the following 3 states? (using Micronaut
io.micronaut.views:micronaut-views-jte
)Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions