leptos_struct_table

Function DefaultTableCellRenderer

Source
pub fn DefaultTableCellRenderer<Row, T, M>(
    props: DefaultTableCellRendererProps<Row, T, M>,
) -> impl IntoView
where Row: Send + Sync + 'static, T: CellValue<M> + Send + Sync + Clone + 'static, M: '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: Signal<T>
    • The value to display.
  • row: RwSignal<Row>
    • 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]

§Optional Props