pub struct DefaultNaiveTimeTableCellRendererProps<F>{
pub class: String,
pub value: MaybeSignal<NaiveTime>,
pub on_change: F,
pub index: usize,
pub format_string: Option<String>,
}chrono only.Expand description
Props for the DefaultNaiveTimeTableCellRenderer component.
The default cell renderer for chrono::NaiveTime.
This is only available when the crate feature chrono is enabled
§Required Props
- class:
String- The class attribute for the cell element. Generated by the classes provider.
- value:
impl Into<MaybeSignal<NaiveTime>>- 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
- format_string:
String- The format string to use for formatting the date. Provided by the
#[table(format(string="..."))]attribute of the field. Seechrono::format::strftimefor more information.
- The format string to use for formatting the date. Provided by the
Fields§
§class: StringThe class attribute for the cell element. Generated by the classes provider.
value: MaybeSignal<NaiveTime>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.
format_string: Option<String>The format string to use for formatting the date. Provided by the #[table(format(string="..."))] attribute of the field.
See chrono::format::strftime for more information.
Implementations§
source§impl<F> DefaultNaiveTimeTableCellRendererProps<F>
impl<F> DefaultNaiveTimeTableCellRendererProps<F>
sourcepub fn builder(
) -> DefaultNaiveTimeTableCellRendererPropsBuilder<F, ((), (), (), (), ())>
pub fn builder( ) -> DefaultNaiveTimeTableCellRendererPropsBuilder<F, ((), (), (), (), ())>
Create a builder for building DefaultNaiveTimeTableCellRendererProps.
On the builder, call .class(...), .value(...), .on_change(...), .index(...), .format_string(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of DefaultNaiveTimeTableCellRendererProps.