pub struct DefaultTableCellRendererProps<T>where
T: IntoView + Clone + 'static,{
pub class: MaybeSignal<String>,
pub value: MaybeSignal<T>,
pub index: usize,
}
Expand description
Props for the DefaultTableCellRenderer
component.
The default cell renderer. Uses the <td>
element.
Required Props
- class:
impl Into<MaybeSignal<String>>
- The class attribute for the cell element. Generated by the classes provider.
- value:
impl Into<MaybeSignal<T>>
- The value to display.
- index:
usize
- The index of the column. Starts at 0.
Fields§
§class: MaybeSignal<String>
The class attribute for the cell element. Generated by the classes provider.
value: MaybeSignal<T>
The value to display.
index: usize
The index of the column. Starts at 0.
Implementations§
source§impl<T> DefaultTableCellRendererProps<T>where
T: IntoView + Clone + 'static,
impl<T> DefaultTableCellRendererProps<T>where
T: IntoView + Clone + 'static,
sourcepub fn builder() -> DefaultTableCellRendererPropsBuilder<T, ((), (), ())>
pub fn builder() -> DefaultTableCellRendererPropsBuilder<T, ((), (), ())>
Create a builder for building DefaultTableCellRendererProps
.
On the builder, call .class(...)
, .value(...)
, .index(...)
to set the values of the fields.
Finally, call .build()
to create the instance of DefaultTableCellRendererProps
.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for DefaultTableCellRendererProps<T>
impl<T> !Send for DefaultTableCellRendererProps<T>
impl<T> !Sync for DefaultTableCellRendererProps<T>
impl<T> Unpin for DefaultTableCellRendererProps<T>where
T: Unpin,
impl<T> !UnwindSafe for DefaultTableCellRendererProps<T>
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