I am trying to write a query using dataviewjs or inline queries. (I apologize if I get the terminology wrong, I’m still figuring it out)
I’m using dashboard++ and I’m able to use dataview to filter a list that gives me the correct results, but it adds a side to side scroll under the list which I’m trying to remove, but couldn’t find anything about it.
I noticed that if it’s written like dataviewjs or inline queries then the side to side scroll disappears.
However, I can’t figure out how to filter out content when using dataviewjs. For example, in my properties, I have ‘type: meeting’ or ‘tags: - agenda’ as seen in the first image, but no clue how to filter the dataviewjs to filter the same way.
So, my question I suppose has two parts. Is there way to get dataview to not have a scroll at the bottom?
or
Is there a way to add a filter properties when using dataviewjs?
Things I have tried
I’ve tried a searching it up to write a filter, for example, where(t => t.file.type = “meetings”) or something similar, but it doesn’t actually do anything for me and the results are the same with or without it.
Example:
I’ve tried using the tag as the source, but then it pulls any page with the #tag even if it’s not in the properties.
That means you are selecting pages which don’t include the type property at all, so Dataview is unable to filter for types which include meetings, since type doesn’t exist.
Use ?. to say "don’t continue the command if this thing doesn’t exist.
And also I think it would be smart to take a Javascript 101 course, because this isn’t anything to do with Dataview, this is just plain Javascript which you need to read up on.