pub struct DefaultTableRowRendererProps<K, F>{
pub class: MaybeSignal<String>,
pub key: K,
pub index: usize,
pub selected: Signal<bool>,
pub on_click: F,
pub children: Children,
}
Expand description
Props for the DefaultTableRowRenderer
component.
The default table row renderer. Uses the <tr>
element.
Required Props
- class:
impl Into<MaybeSignal<String>>
- The class attribute for the row element. Generated by the classes provider.
- key:
impl Into<K>
- The index of the row. Starts at 0 for the first body row. The header row always has index 0 as well.
- index:
usize
- The index of the row. Starts at 0 for the first body row.
- selected:
impl Into<Signal<bool>>
- The selected state of the row. True, when the row is selected.
- on_click: [
F
]- The event handler for the click event. Has to be called with
TableRowEvent
.
- The event handler for the click event. Has to be called with
- children:
Children
Fields§
§class: MaybeSignal<String>
The class attribute for the row element. Generated by the classes provider.
key: K
The index of the row. Starts at 0 for the first body row. The header row always has index 0 as well.
index: usize
The index of the row. Starts at 0 for the first body row.
selected: Signal<bool>
The selected state of the row. True, when the row is selected.
on_click: F
The event handler for the click event. Has to be called with TableRowEvent
.
children: Children
Implementations§
source§impl<K, F> DefaultTableRowRendererProps<K, F>
impl<K, F> DefaultTableRowRendererProps<K, F>
sourcepub fn builder(
) -> DefaultTableRowRendererPropsBuilder<K, F, ((), (), (), (), (), ())>
pub fn builder( ) -> DefaultTableRowRendererPropsBuilder<K, F, ((), (), (), (), (), ())>
Create a builder for building DefaultTableRowRendererProps
.
On the builder, call .class(...)
, .key(...)
, .index(...)
, .selected(...)
, .on_click(...)
, .children(...)
to set the values of the fields.
Finally, call .build()
to create the instance of DefaultTableRowRendererProps
.
Trait Implementations§
source§impl<K, F> IntoView for DefaultTableRowRendererProps<K, F>
impl<K, F> IntoView for DefaultTableRowRendererProps<K, F>
Auto Trait Implementations§
impl<K, F> !RefUnwindSafe for DefaultTableRowRendererProps<K, F>
impl<K, F> !Send for DefaultTableRowRendererProps<K, F>
impl<K, F> !Sync for DefaultTableRowRendererProps<K, F>
impl<K, F> Unpin for DefaultTableRowRendererProps<K, F>
impl<K, F> !UnwindSafe for DefaultTableRowRendererProps<K, 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