pub struct DividerProps {
pub label: LocalBoxSignal<'static, String>,
pub apply: Option<Box<dyn FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement> + 'static>>,
}Expand description
A horizontal rule with an optional centered label.
Fields§
§label: LocalBoxSignal<'static, String>§apply: Option<Box<dyn FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement> + 'static>>Implementations§
Source§impl DividerProps
impl DividerProps
Source§impl DividerProps
impl DividerProps
pub fn label(self, v: String) -> DividerProps
pub fn label_signal( self, v: impl Signal<Item = String> + 'static, ) -> DividerProps
Source§impl DividerProps
impl DividerProps
pub fn apply( self, v: impl FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement> + 'static, ) -> DividerProps
Auto Trait Implementations§
impl !RefUnwindSafe for DividerProps
impl !Send for DividerProps
impl !Sync for DividerProps
impl !UnwindSafe for DividerProps
impl Freeze for DividerProps
impl Unpin for DividerProps
impl UnsafeUnpin for DividerProps
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