Struct patternfly_dioxus::dioxus_elements::menu
[−]pub struct menu;Expand description
Build a
<menu>
element.
Trait Implementations
fn prevent_default(
&self,
cx: NodeFactory<'a>,
val: Arguments<'_>
) -> Attribute<'a>
fn prevent_default(
&self,
cx: NodeFactory<'a>,
val: Arguments<'_>
) -> Attribute<'a>
Prevent the default action for this element. Read more
fn accesskey(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn class(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn class(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
The HTML class attribute is used to specify a class for an HTML element. Read more
fn contenteditable(
&self,
cx: NodeFactory<'a>,
val: Arguments<'_>
) -> Attribute<'a>
fn data(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn dir(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn draggable(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn id(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn lang(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn spellcheck(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn style(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn tabindex(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn title(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn translate(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn role(&self, cx: NodeFactory<'a>, val: Arguments<'_>) -> Attribute<'a>
fn dangerous_inner_html(
&self,
cx: NodeFactory<'a>,
val: Arguments<'_>
) -> Attribute<'a>
fn dangerous_inner_html(
&self,
cx: NodeFactory<'a>,
val: Arguments<'_>
) -> Attribute<'a>
dangerous_inner_html is Dioxus’s replacement for using innerHTML in the browser DOM. In general, setting
HTML from code is risky because it’s easy to inadvertently expose your users to a cross-site scripting (XSS)
attack. So, you can set HTML directly from Dioxus, but you have to type out dangerous_inner_html to remind
yourself that it’s dangerous Read more