pub struct DefaultTableHeaderCellRendererProps<F>where
F: Fn(TableHeadEvent) + 'static,{
pub class: Signal<String>,
pub inner_class: String,
pub index: usize,
pub sort_priority: Signal<Option<usize>>,
pub sort_direction: Signal<ColumnSort>,
pub on_click: F,
pub children: Children,
}Expand description
Props for the DefaultTableHeaderCellRenderer component.
The default table header renderer. Renders roughly
<th>
<span>Title</span>
</th>§Required Props
- class:
impl Into<Signal<String>>- The class attribute for the head element. Generated by the classes provider.
- inner_class:
impl Into<String>- The class attribute for the inner element. Generated by the classes provider.
- 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.
- sort_priority:
impl Into<Signal<Option<usize>>>- The sort priority of the column.
Noneif the column is not sorted.0means the column is the primary sort column.
- The sort priority of the column.
- sort_direction:
impl Into<Signal<ColumnSort>>- The sort direction of the column. See
ColumnSort.
- The sort direction of the column. See
- on_click: [
F]- The event handler for the click event. Has to be called with
TableHeadEvent.
- The event handler for the click event. Has to be called with
- children:
Children
Fields§
§class: Signal<String>The class attribute for the head element. Generated by the classes provider.
inner_class: StringThe class attribute for the inner element. Generated by the classes provider.
index: usizeThe 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.
sort_priority: 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.
sort_direction: Signal<ColumnSort>The sort direction of the column. See ColumnSort.
on_click: FThe event handler for the click event. Has to be called with TableHeadEvent.
children: ChildrenImplementations§
Source§impl<F> DefaultTableHeaderCellRendererProps<F>where
F: Fn(TableHeadEvent) + 'static,
impl<F> DefaultTableHeaderCellRendererProps<F>where
F: Fn(TableHeadEvent) + 'static,
Sourcepub fn builder() -> DefaultTableHeaderCellRendererPropsBuilder<F, ((), (), (), (), (), (), ())>
pub fn builder() -> DefaultTableHeaderCellRendererPropsBuilder<F, ((), (), (), (), (), (), ())>
Create a builder for building DefaultTableHeaderCellRendererProps.
On the builder, call .class(...), .inner_class(...), .index(...), .sort_priority(...), .sort_direction(...), .on_click(...), .children(...) to set the values of the fields.
Finally, call .build() to create the instance of DefaultTableHeaderCellRendererProps.
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for DefaultTableHeaderCellRendererProps<F>where
F: Freeze,
impl<F> !RefUnwindSafe for DefaultTableHeaderCellRendererProps<F>
impl<F> Send for DefaultTableHeaderCellRendererProps<F>where
F: Send,
impl<F> !Sync for DefaultTableHeaderCellRendererProps<F>
impl<F> Unpin for DefaultTableHeaderCellRendererProps<F>where
F: Unpin,
impl<F> !UnwindSafe for DefaultTableHeaderCellRendererProps<F>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more