-
|
I needed to bind classes based on multiple conditions. The x-bind page does not explain how to do that, or that it's even possible. I found the answer on StackOverflow. Something like this: x-bind:class="[ isFoo ? 'foo' : '', isBar ? 'bar' : 'disabled' ]"It would be a good idea to put a small note about this behaviour on that page. It's incredibly useful. (I'm still an alpine newbie, so I'm not the best person to update the official docs.) @joshhanley: I'd have opened a docs issue, but it seems to be buggy; it's not possible to create new issues, even blank ones (shows an error "No templates available for the current repository"). I see you're the last one to commit to the repo... maybe you could have a look? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
This is the correct place, as we are now using discussions to track bugs and ideas. We did have an issue template that redirected to discussions but GitHub has broken it recently. But the docs are open source in this repo, so PRs to fix it are welcome! 🙂 |
Beta Was this translation helpful? Give feedback.
-
|
It does, right here This would be the way to do that. |
Beta Was this translation helpful? Give feedback.
It does, right here
This would be the way to do that.