leptos_struct_table

Function DefaultTableCellRenderer

Source
pub fn DefaultTableCellRenderer<T, F>(
    props: DefaultTableCellRendererProps<T, F>,
) -> impl IntoView
where T: CellValue + Clone + 'static, F: Fn(T) + 'static,
Expand description

The default cell renderer. Uses the <td> element.

ยงRequired Props

  • class: String
    • The class attribute for the cell element. Generated by the classes provider.
  • value: impl Into<MaybeSignal<T>>
    • The value to display.
  • on_change: [F]
    • Event handler called when the cell is changed. In this default renderer this will never happen.
  • index: usize
    • The index of the column. Starts at 0.
  • options: [T::RenderOptions]