#How can I disable the "This page" row on the summarizer?

16 messages · Page 1 of 1 (latest)

hoary cypress
#

On BaseWidget I added a summarizer but I want to hide the "This page" section from it. Is this something that can be done? I couldn't find it anywhere in documentation.

hoary cypress
#

Bump, for great justice

charred lance
hoary cypress
#

I apologize - I'm not understanding the implementation suggested here.

#

To be clear I am trying to hide "This page" row and related summaries from the summarizer.

tardy barn
#

As long as the table records are a paginator instance and has records that row will show. So your only real solution, without overriding the vendor views which isn’t recommended, would be with a custom theme to hide the row via css.

hoary cypress
west forgeBOT
hoary cypress
hoary cypress
hoary cypress
# tardy barn What have you tried?

sorry for the delayed reply - I've tried these approaches:

- tr.fi-ta-summary-row:has(span.fi-ta-summary-row-heading:contains("This page")) {
-     display: none;
- }
- 
- /* Hide "This page" row in table summaries */
- .fi-ta-row.fi-ta-summary-row:has(
-         > td > span.fi-ta-summary-row-heading:contains("This page")
-     ) {
+ /* Hide "This page" row while keeping "All carriers" row */
+ .fi-ta-summary-row td span.fi-ta-summary-row-heading:not(:contains("All carriers")) {
      display: none;
  }```
```  /* Hide "This page" row in table summaries */
+ .fi-ta-summary-row:first-of-type {
      display: none;
  }```
```  /* Hide "This page" row in table summaries */
+ .fi-ta-summary-row:has(.fi-ta-summary-row-heading) td:first-child:not(:has(.fi-ta-summary-row-heading:contains("All carriers"))) {
      display: none;
  }```
#

(in app.css)

tardy barn
#

in css, :contains doesn't work with text of the element.

#

if there's no class, id or attribute specific to it then you'll have to target in another way, probably with a :nth() selector.