pub struct DefaultNaiveTimeTableCellRendererProps<F>{
pub class: MaybeSignal<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:
impl Into<MaybeSignal<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::strftime
for more information.
- The format string to use for formatting the date. Provided by the
Fields§
§class: MaybeSignal<String>
The class attribute for the cell element. Generated by the classes provider.
value: 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.
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
.