File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,14 @@ where
3939
4040#[ component]
4141#[ allow( unused_variables) ]
42- pub fn CustomDataRenderer < T , F > (
42+ pub fn CustomDataRenderer < T > (
4343 class : String ,
4444 #[ prop( into) ] value : Signal < T > ,
45- on_change : F ,
45+ row : RwSignal < Book < T > > ,
4646 index : usize ,
4747) -> impl IntoView
4848where
4949 T : IntoView + Clone + Send + Sync + ' static ,
50- F : Fn ( T ) + ' static ,
5150{
5251 view ! {
5352 <td class=class>{ value} </td>
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ fn main() {
7575 </div>
7676
7777 { move || selected_row. get( ) . map( |selected_row| {
78+ let selected_row = selected_row. get( ) ;
79+
7880 view! {
7981 <div class="rounded-md overflow-clip m-10 border dark:border-gray-700 float-left px-5 py-3 bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-400" >
8082 <pre>
You can’t perform that action at this time.
0 commit comments