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

Implementations§

source§

impl<C, F, __inner_class, __index, __column, __sort_priority, __sort_direction, __on_click, __children> DefaultTableHeaderRendererPropsBuilder<C, F, ((), __inner_class, __index, __column, __sort_priority, __sort_direction, __on_click, __children)>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn class( self, class: impl Into<Signal<String>> ) -> DefaultTableHeaderRendererPropsBuilder<C, F, ((Signal<String>,), __inner_class, __index, __column, __sort_priority, __sort_direction, __on_click, __children)>

class: implInto<Signal<String>>

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

source§

impl<C, F, __class, __index, __column, __sort_priority, __sort_direction, __on_click, __children> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, (), __index, __column, __sort_priority, __sort_direction, __on_click, __children)>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn inner_class( self, inner_class: impl Into<String> ) -> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, (String,), __index, __column, __sort_priority, __sort_direction, __on_click, __children)>

inner_class: implInto<String>

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

source§

impl<C, F, __class, __inner_class, __column, __sort_priority, __sort_direction, __on_click, __children> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, (), __column, __sort_priority, __sort_direction, __on_click, __children)>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn index( self, index: usize ) -> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, (usize,), __column, __sort_priority, __sort_direction, __on_click, __children)>

index: usize

The index of the column. Starts at 0 for the first column. The order of the columns is the same as the order of the fields in the struct.

source§

impl<C, F, __class, __inner_class, __index, __sort_priority, __sort_direction, __on_click, __children> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, (), __sort_priority, __sort_direction, __on_click, __children)>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn column( self, column: C ) -> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, (C,), __sort_priority, __sort_direction, __on_click, __children)>

column: [C]

The column enum variant. It is auto generated from the struct.

source§

impl<C, F, __class, __inner_class, __index, __column, __sort_direction, __on_click, __children> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, __column, (), __sort_direction, __on_click, __children)>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn sort_priority( self, sort_priority: impl Into<Signal<Option<usize>>> ) -> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, __column, (Signal<Option<usize>>,), __sort_direction, __on_click, __children)>

sort_priority: implInto<Signal<Option<usize>>>

The sort priority of the column. None if the column is not sorted. 0 means the column is the primary sort column.

source§

impl<C, F, __class, __inner_class, __index, __column, __sort_priority, __on_click, __children> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, __column, __sort_priority, (), __on_click, __children)>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn sort_direction( self, sort_direction: impl Into<Signal<ColumnSort>> ) -> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, __column, __sort_priority, (Signal<ColumnSort>,), __on_click, __children)>

sort_direction: implInto<Signal<ColumnSort>>

The sort direction of the column. See ColumnSort.

source§

impl<C, F, __class, __inner_class, __index, __column, __sort_priority, __sort_direction, __children> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, __column, __sort_priority, __sort_direction, (), __children)>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn on_click( self, on_click: F ) -> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, __column, __sort_priority, __sort_direction, (F,), __children)>

on_click: [F]

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

source§

impl<C, F, __class, __inner_class, __index, __column, __sort_priority, __sort_direction, __on_click> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, __column, __sort_priority, __sort_direction, __on_click, ())>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn children( self, children: Children ) -> DefaultTableHeaderRendererPropsBuilder<C, F, (__class, __inner_class, __index, __column, __sort_priority, __sort_direction, __on_click, (Children,))>

children: Children

source§

impl<C, F> DefaultTableHeaderRendererPropsBuilder<C, F, ((Signal<String>,), (String,), (usize,), (C,), (Signal<Option<usize>>,), (Signal<ColumnSort>,), (F,), (Children,))>where F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

source

pub fn build(self) -> DefaultTableHeaderRendererProps<C, F>

Finalise the builder and create its DefaultTableHeaderRendererProps instance

Trait Implementations§

source§

impl<C, F, TypedBuilderFields> Clone for DefaultTableHeaderRendererPropsBuilder<C, F, TypedBuilderFields>where TypedBuilderFields: Clone, F: Fn(TableHeadEvent<C>) + 'static, C: 'static + Copy,

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<C, F, TypedBuilderFields> RefUnwindSafe for DefaultTableHeaderRendererPropsBuilder<C, F, TypedBuilderFields>where C: RefUnwindSafe, F: RefUnwindSafe, TypedBuilderFields: RefUnwindSafe,

§

impl<C, F, TypedBuilderFields> Send for DefaultTableHeaderRendererPropsBuilder<C, F, TypedBuilderFields>where C: Send, F: Send, TypedBuilderFields: Send,

§

impl<C, F, TypedBuilderFields> Sync for DefaultTableHeaderRendererPropsBuilder<C, F, TypedBuilderFields>where C: Sync, F: Sync, TypedBuilderFields: Sync,

§

impl<C, F, TypedBuilderFields> Unpin for DefaultTableHeaderRendererPropsBuilder<C, F, TypedBuilderFields>where C: Unpin, F: Unpin, TypedBuilderFields: Unpin,

§

impl<C, F, TypedBuilderFields> UnwindSafe for DefaultTableHeaderRendererPropsBuilder<C, F, TypedBuilderFields>where C: UnwindSafe, F: 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