leptos_struct_table/components/
cell.rs#![allow(unused_variables)]
use crate::CellValue;
use std::marker::PhantomData;
use leptos::prelude::*;
#[component]
pub fn DefaultTableCellRenderer<Row, T, M>(
class: String,
value: Signal<T>,
row: RwSignal<Row>,
index: usize,
options: T::RenderOptions,
#[prop(optional)] _marker: PhantomData<M>,
) -> impl IntoView
where
Row: Send + Sync + 'static,
T: CellValue<M> + Send + Sync + Clone + 'static,
M: 'static,
{
view! {
<td class=class>{move || value.get().render_value(options.clone())}</td>
}
}