pub struct DefaultNumberTableCellRendererProps<T, F>{
pub class: String,
pub value: MaybeSignal<T>,
pub on_change: F,
pub index: usize,
pub precision: Option<usize>,
}Expand description
Props for the DefaultNumberTableCellRenderer component.
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.
- The number of digits to display after the decimal point. Provided by the
Fields§
§class: StringThe class attribute for the cell element. Generated by the classes provider.
value: MaybeSignal<T>The value to display.
on_change: FEvent handler called when the cell is changed. In this default renderer this will never happen.
index: usizeThe index of the column. Starts at 0.
precision: Option<usize>The number of digits to display after the decimal point. Provided by the #[table(format(precision=X))] attribute of the field.
Implementations§
source§impl<T, F> DefaultNumberTableCellRendererProps<T, F>
impl<T, F> DefaultNumberTableCellRendererProps<T, F>
sourcepub fn builder(
) -> DefaultNumberTableCellRendererPropsBuilder<T, F, ((), (), (), (), ())>
pub fn builder( ) -> DefaultNumberTableCellRendererPropsBuilder<T, F, ((), (), (), (), ())>
Create a builder for building DefaultNumberTableCellRendererProps.
On the builder, call .class(...), .value(...), .on_change(...), .index(...), .precision(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of DefaultNumberTableCellRendererProps.