I wanted to add a checked attribute to an element based on a boolean in an rsx! macro. But I couldn't find any documentation on optional attributes in the docs. Eventually I did find you can add checked[my_bool] to do it by trial and error, but I'd appreciate it if was easier to figure this out.
I wanted to add a
checkedattribute to an element based on a boolean in anrsx!macro. But I couldn't find any documentation on optional attributes in the docs. Eventually I did find you can addchecked[my_bool]to do it by trial and error, but I'd appreciate it if was easier to figure this out.