pub struct DefaultTableCellRendererProps<T, F>{
pub class: String,
pub value: MaybeSignal<T>,
pub on_change: F,
pub index: usize,
pub options: T::RenderOptions,
}
Expand description
Props for the DefaultTableCellRenderer
component.
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:
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.
- options: [
T::RenderOptions
]
Fields§
§class: String
The class attribute for the cell element. Generated by the classes provider.
value: 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.
options: T::RenderOptions
Implementations§
Source§impl<T, F> DefaultTableCellRendererProps<T, F>
impl<T, F> DefaultTableCellRendererProps<T, F>
Sourcepub fn builder() -> DefaultTableCellRendererPropsBuilder<T, F, ((), (), (), (), ())>
pub fn builder() -> DefaultTableCellRendererPropsBuilder<T, F, ((), (), (), (), ())>
Create a builder for building DefaultTableCellRendererProps
.
On the builder, call .class(...)
, .value(...)
, .on_change(...)
, .index(...)
, .options(...)
to set the values of the fields.
Finally, call .build()
to create the instance of DefaultTableCellRendererProps
.
Trait Implementations§
Auto Trait Implementations§
impl<T, F> Freeze for DefaultTableCellRendererProps<T, F>
impl<T, F> !RefUnwindSafe for DefaultTableCellRendererProps<T, F>
impl<T, F> !Send for DefaultTableCellRendererProps<T, F>
impl<T, F> !Sync for DefaultTableCellRendererProps<T, F>
impl<T, F> Unpin for DefaultTableCellRendererProps<T, F>
impl<T, F> !UnwindSafe for DefaultTableCellRendererProps<T, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more