Replies: 1 comment
-
OK, I finally got this by: classSchedule = toRaw(isRef(classSchedule)? classSchedule.value : classSchedule).body; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I cannot find any examples online for reading
.csv
data with thequerryContent
approach, so I'll just ask here.When reading a file that contains several column of data, I can do:
where
schedule
is a folder under/content
I have several files inside, namely
2022.csv
,2023.csv
etc, showing the schedule for each year.With the code above, I get the
classSchedule
Proxy, where I can getclassSchedule.value
.But in order to show it in a table with
ag-grid
, I want to get the nested array, instead of the whole csv data as one item of the array.If you look at the data structure below:

The second arrow points to a manually defined
ref
:For the
Proxy
where the first arrow pointed to, I want thebody
(Array(10)
).How can I get that?
More reference of Ag-grid + Vue: https://www.ag-grid.com/vue-data-grid/getting-started/
Beta Was this translation helpful? Give feedback.
All reactions