pub struct DefaultTableRowRendererPropsBuilder<K, F, TypedBuilderFields = ((), (), (), (), (), ())> { /* private fields */ }
Expand description

Implementations§

source§

impl<K, F, __key, __index, __selected, __on_click, __children> DefaultTableRowRendererPropsBuilder<K, F, ((), __key, __index, __selected, __on_click, __children)>where F: Fn(TableRowEvent<K>) + 'static, K: Clone + 'static,

source

pub fn class( self, class: impl Into<MaybeSignal<String>> ) -> DefaultTableRowRendererPropsBuilder<K, F, ((MaybeSignal<String>,), __key, __index, __selected, __on_click, __children)>

class: implInto<MaybeSignal<String>>

The class attribute for the row element. Generated by the classes provider.

source§

impl<K, F, __class, __index, __selected, __on_click, __children> DefaultTableRowRendererPropsBuilder<K, F, (__class, (), __index, __selected, __on_click, __children)>where F: Fn(TableRowEvent<K>) + 'static, K: Clone + 'static,

source

pub fn key( self, key: impl Into<K> ) -> DefaultTableRowRendererPropsBuilder<K, F, (__class, (K,), __index, __selected, __on_click, __children)>

key: implInto<K>

The index of the row. Starts at 0 for the first body row. The header row always has index 0 as well.

source§

impl<K, F, __class, __key, __selected, __on_click, __children> DefaultTableRowRendererPropsBuilder<K, F, (__class, __key, (), __selected, __on_click, __children)>where F: Fn(TableRowEvent<K>) + 'static, K: Clone + 'static,

source

pub fn index( self, index: usize ) -> DefaultTableRowRendererPropsBuilder<K, F, (__class, __key, (usize,), __selected, __on_click, __children)>

index: usize

The index of the row. Starts at 0 for the first body row.

source§

impl<K, F, __class, __key, __index, __on_click, __children> DefaultTableRowRendererPropsBuilder<K, F, (__class, __key, __index, (), __on_click, __children)>where F: Fn(TableRowEvent<K>) + 'static, K: Clone + 'static,

source

pub fn selected( self, selected: impl Into<Signal<bool>> ) -> DefaultTableRowRendererPropsBuilder<K, F, (__class, __key, __index, (Signal<bool>,), __on_click, __children)>

selected: implInto<Signal<bool>>

The selected state of the row. True, when the row is selected.

source§

impl<K, F, __class, __key, __index, __selected, __children> DefaultTableRowRendererPropsBuilder<K, F, (__class, __key, __index, __selected, (), __children)>where F: Fn(TableRowEvent<K>) + 'static, K: Clone + 'static,

source

pub fn on_click( self, on_click: F ) -> DefaultTableRowRendererPropsBuilder<K, F, (__class, __key, __index, __selected, (F,), __children)>

on_click: [F]

The event handler for the click event. Has to be called with TableRowEvent.

source§

impl<K, F, __class, __key, __index, __selected, __on_click> DefaultTableRowRendererPropsBuilder<K, F, (__class, __key, __index, __selected, __on_click, ())>where F: Fn(TableRowEvent<K>) + 'static, K: Clone + 'static,

source

pub fn children( self, children: Children ) -> DefaultTableRowRendererPropsBuilder<K, F, (__class, __key, __index, __selected, __on_click, (Children,))>

children: Children

source§

impl<K, F> DefaultTableRowRendererPropsBuilder<K, F, ((MaybeSignal<String>,), (K,), (usize,), (Signal<bool>,), (F,), (Children,))>where F: Fn(TableRowEvent<K>) + 'static, K: Clone + 'static,

source

pub fn build(self) -> DefaultTableRowRendererProps<K, F>

Finalise the builder and create its DefaultTableRowRendererProps instance

Trait Implementations§

source§

impl<K, F, TypedBuilderFields> Clone for DefaultTableRowRendererPropsBuilder<K, F, TypedBuilderFields>where TypedBuilderFields: Clone, F: Fn(TableRowEvent<K>) + 'static, K: Clone + 'static,

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<K, F, TypedBuilderFields> RefUnwindSafe for DefaultTableRowRendererPropsBuilder<K, F, TypedBuilderFields>where F: RefUnwindSafe, K: RefUnwindSafe, TypedBuilderFields: RefUnwindSafe,

§

impl<K, F, TypedBuilderFields> Send for DefaultTableRowRendererPropsBuilder<K, F, TypedBuilderFields>where F: Send, K: Send, TypedBuilderFields: Send,

§

impl<K, F, TypedBuilderFields> Sync for DefaultTableRowRendererPropsBuilder<K, F, TypedBuilderFields>where F: Sync, K: Sync, TypedBuilderFields: Sync,

§

impl<K, F, TypedBuilderFields> Unpin for DefaultTableRowRendererPropsBuilder<K, F, TypedBuilderFields>where F: Unpin, K: Unpin, TypedBuilderFields: Unpin,

§

impl<K, F, TypedBuilderFields> UnwindSafe for DefaultTableRowRendererPropsBuilder<K, F, TypedBuilderFields>where F: UnwindSafe, K: UnwindSafe, TypedBuilderFields: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more