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§
Sourcefn with_disabled(self, disabled: bool) -> Self::Output<Disabled>
fn with_disabled(self, disabled: bool) -> Self::Output<Disabled>
Whether the form control is disabled.
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.