OptGroup

Trait OptGroup 

Source
pub trait OptGroup: WithAttribute {
    // Provided methods
    fn disabled(self) -> Self::Output<Disabled> { ... }
    fn with_disabled(self, disabled: bool) -> Self::Output<Disabled> { ... }
    fn label(self, value: impl Into<Cow<'static, str>>) -> Self::Output<Label> { ... }
}
Expand description

The optgroup element represents a group of super::option elements with a common label.

Provided Methods§

Source

fn disabled(self) -> Self::Output<Disabled>

Whether the form control is disabled.

Source

fn with_disabled(self, disabled: bool) -> Self::Output<Disabled>

Whether the form control is disabled.

Source

fn label(self, value: impl Into<Cow<'static, str>>) -> Self::Output<Label>

User-visible label.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A: Attributes, V: 'static> OptGroup for Html<OptGroup, A, V>