File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 5
5
< link rel ="icon " href ="/favicon.ico " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< title > Vite App</ title >
8
- < script src ="https://cdn.tailwindcss.com "> </ script >
9
8
</ head >
10
9
< body >
11
10
< div id ="app "> </ div >
Original file line number Diff line number Diff line change @@ -131,15 +131,6 @@ const table = useVueTable({
131
131
},
132
132
})
133
133
134
- // Toggle row expanded state
135
- const toggleRowExpanded = (id : string ): void => {
136
- const currentExpanded = expanded .value as Record <string , boolean >
137
- expanded .value = {
138
- ... currentExpanded ,
139
- [id ]: ! currentExpanded [id ],
140
- }
141
- }
142
-
143
134
// Group by status
144
135
const groupByStatus = (): void => {
145
136
grouping .value = [' status' ]
@@ -211,7 +202,7 @@ const clearGrouping = (): void => {
211
202
<div v-if =" cell.getIsGrouped()" class =" grouped-cell" >
212
203
<button
213
204
class =" expand-button"
214
- @click =" toggleRowExpanded( row.id )"
205
+ @click =" row.getToggleExpandedHandler()( )"
215
206
>
216
207
<span v-if =" row.getIsExpanded()" class =" icon" >👇</span >
217
208
<span v-else class =" icon" >👉</span >
You can’t perform that action at this time.
0 commit comments