pub struct EuvSegmentedProps {
pub options: Vec<EuvSegmentedOption>,
pub value: Signal<String>,
pub on_change: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_segmented component.
The selection lives in a caller-owned Signal<String> so the control
takes part in two-way binding with the rest of the page.
Fields§
§options: Vec<EuvSegmentedOption>The options rendered in the control, in display order.
value: Signal<String>The signal holding the currently selected option value.
on_change: Option<Rc<dyn Fn(&'static str)>>Optional callback receiving the value of the picked option.
Trait Implementations§
Source§impl Clone for EuvSegmentedProps
impl Clone for EuvSegmentedProps
Source§impl Debug for EuvSegmentedProps
impl Debug for EuvSegmentedProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvSegmentedProps
impl !Send for EuvSegmentedProps
impl !Sync for EuvSegmentedProps
impl !UnwindSafe for EuvSegmentedProps
impl Freeze for EuvSegmentedProps
impl Unpin for EuvSegmentedProps
impl UnsafeUnpin for EuvSegmentedProps
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