leptos_struct_table

Function DefaultTableHeaderCellRenderer

Source
pub fn DefaultTableHeaderCellRenderer<F>(
    props: DefaultTableHeaderCellRendererProps<F>,
) -> impl IntoView
where F: Fn(TableHeadEvent) + 'static,
Expand description

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. None if the column is not sorted. 0 means the column is the primary sort column.
  • sort_direction: impl Into<Signal<ColumnSort>>
    • The sort direction of the column. See ColumnSort.
  • on_click: [F]
    • The event handler for the click event. Has to be called with TableHeadEvent.
  • children: Children