pub fn DefaultNumberTableCellRenderer<T, F>(
    props: DefaultNumberTableCellRendererProps<T, F>
) -> impl IntoView
where T: Display + Clone + 'static, F: Fn(T) + 'static,
Expand description

The default number 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.

§Optional Props

  • precision: usize
    • The number of digits to display after the decimal point. Provided by the #[table(format(precision=X))] attribute of the field.