Constant dioxus_html::elements::circle::prevent_default
source · pub const prevent_default: AttributeDescription;Expand description
Prevent the default action for this element.
For more information, see the MDN docs: https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
§Usage in rsx
ⓘ
let prevent_default = "value";
rsx! {
// Attributes need to be under the element they modify
div {
// Attributes are followed by a colon and then the value of the attribute
prevent_default: "value"
}
div {
// Or you can use the shorthand syntax if you have a variable in scope that has the same name as the attribute
prevent_default,
}
};