pub struct DefaultTableHeaderCellRendererProps<F, Column>where
F: Fn(TableHeadEvent<Column>) + 'static,
Column: PartialEq + Copy + Send + Sync + Debug + 'static,{
pub class: Signal<String>,
pub inner_class: String,
pub index: Column,
pub sort_priority: Signal<Option<usize>>,
pub sort_direction: Signal<ColumnSort>,
pub on_click: F,
pub drag_state: DragStateRwSignal<Column>,
pub drag_handler: HeadDragHandler<Column>,
pub columns: RwSignal<Vec<Column>>,
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: [
Column]- The index of the column. Information on column indexes is available at: the Column index type section.
- 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
- drag_state:
DragStateRwSignal<Column>- Drag state
- drag_handler:
HeadDragHandler<Column>- Drag handlers
- columns:
RwSignal<Vec<Column>>- The visible ordered columns of the table.
- 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: ColumnThe index of the column. Information on column indexes is available at: the Column index type section.
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.
drag_state: DragStateRwSignal<Column>Drag state
drag_handler: HeadDragHandler<Column>Drag handlers
columns: RwSignal<Vec<Column>>The visible ordered columns of the table.
children: ChildrenImplementations§
Source§impl<F, Column> DefaultTableHeaderCellRendererProps<F, Column>
impl<F, Column> DefaultTableHeaderCellRendererProps<F, Column>
Sourcepub fn builder() -> DefaultTableHeaderCellRendererPropsBuilder<F, Column, ((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> DefaultTableHeaderCellRendererPropsBuilder<F, Column, ((), (), (), (), (), (), (), (), (), ())>
Create a builder for building DefaultTableHeaderCellRendererProps.
On the builder, call .class(...), .inner_class(...), .index(...), .sort_priority(...), .sort_direction(...), .on_click(...), .drag_state(...), .drag_handler(...), .columns(...), .children(...) to set the values of the fields.
Finally, call .build() to create the instance of DefaultTableHeaderCellRendererProps.
Trait Implementations§
Auto Trait Implementations§
impl<F, Column> Freeze for DefaultTableHeaderCellRendererProps<F, Column>
impl<F, Column> !RefUnwindSafe for DefaultTableHeaderCellRendererProps<F, Column>
impl<F, Column> Send for DefaultTableHeaderCellRendererProps<F, Column>where
F: Send,
impl<F, Column> !Sync for DefaultTableHeaderCellRendererProps<F, Column>
impl<F, Column> Unpin for DefaultTableHeaderCellRendererProps<F, Column>
impl<F, Column> !UnwindSafe for DefaultTableHeaderCellRendererProps<F, Column>
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