F
Filament12mo ago
Matthew

Summarizers return value, but its not shown on the table

As the title suggests,
TextColumn::make('time')
->time('H:i')
->grow(false)
// ->summarize(Sum::make()),
->summarize(TimeSummarizer::make()),
TextColumn::make('time')
->time('H:i')
->grow(false)
// ->summarize(Sum::make()),
->summarize(TimeSummarizer::make()),
6 Replies
Matthew
MatthewOP12mo ago
This used to work just fine, but now it doesnt show a footer anymore even if I add
->summarize(Sum::make())
->summarize(Sum::make())
It still wont show On any column
DrByte
DrByte12mo ago
"used to" ... as in when? what are the before/after delimiters that one could use to investigate?
Matthew
MatthewOP12mo ago
Yeah, like a couple of weeks ago? I realized what happened. Back then when you made a summary, you got 2 rows at the footer. One that shows summary of that page on the table, and one for all pages. Using css, I removed the last row of the summary. But recently Dan probably removed the total row, therefore css removed the only row that there was. So it want being rendered
DrByte
DrByte12mo ago
GitHub
demo/app/Filament/Resources/Shop/OrderResource.php at 964d38a387a2e...
Source code for the demo.filamentphp.com website. Contribute to filamentphp/demo development by creating an account on GitHub.
Matthew
MatthewOP12mo ago
That... is very weird... 🤔
DanyV90
DanyV9011mo ago
css you're using remove the first or last (depends on selector) row with that class. If table has no pages, but all the records take only one page, summaries display only 1 row. In that case the css rule add display-none to the unique row
Want results from more Discord servers?
Add your server