DataviewJS Snippet Showcase

Topic

Summary
  • How to hide the file count in the_nth_of_table dataview table?
  • How to hide the file count in each dataview table?

Using DVJS

Summary_DVJS

Hide the file count in the the_nth_of_table dataview table

```JS
// M91. hide the file count in the `the_nth_of_table` dataview table :
// #####################################################################
let the_nth_of_table = 2;
this.container.querySelectorAll(
    ".table-view-table tr:first-of-type th:first-of-type > span.small-text"
)[the_nth_of_table - 1].style.visibility = "hidden";
```

Hide the file count in each dataview table

```JS
// M99. hide the file count in each dataview table :
// #####################################################################
let css_Lists = this.container.querySelectorAll(
    ".table-view-table tr:first-of-type th:first-of-type > span.small-text"
);
for (let i = 0; i < css_Lists.length; i++) {
    css_Lists[i].style.visibility = "hidden";
}
```

Using CSS snippet

Summary_CSS
```CSS
// C99. hide the file count in each dataview table :
// #####################################################################
.dataview.small-text {
  display: none;
}
```

Reference

Summary