pub struct SelectProps<'__a> {
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
A styled native select control.
Pass <option> or <optgroup> elements as children. Classes in attrs apply to
the wrapper, while other attributes and event handlers go on the <select>. The
control fills its container by default. Set aria-invalid="true" to show the error
border and focus ring.
Browsers with customizable select support also style the picker. For a styled group
heading, place a <legend> first inside an <optgroup> and keep its label
attribute for browsers that use the native picker.
ⓘ
view! {
select(
attrs: attributes! { name="region" },
<option>"eu-central-1"</option>
<option>"us-east-1"</option>
)
}Fields§
§attrs: Attributes§child: Child<'__a>Implementations§
Source§impl<'__a> SelectProps<'__a>
impl<'__a> SelectProps<'__a>
Sourcepub fn builder() -> SelectPropsBuilder<'__a>
pub fn builder() -> SelectPropsBuilder<'__a>
Returns a SelectPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for SelectProps<'__a>
impl<'__a> !Sync for SelectProps<'__a>
impl<'__a> !UnwindSafe for SelectProps<'__a>
impl<'__a> Freeze for SelectProps<'__a>
impl<'__a> Send for SelectProps<'__a>
impl<'__a> Unpin for SelectProps<'__a>
impl<'__a> UnsafeUnpin for SelectProps<'__a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more