Conditionally hide table summary
I have a report page, where I have a few summaries
I summarize the records based on a relation of their product.. mostly custom summarizers, they don't really make sense on the full table tho as there is no 1 single product and relation to query or show
Added screen to illustrate
16 Replies
was hoping I could just call
->visible()
but summaries dont have that available
how do I go about this?
shamelessly bumping this πyou make a pr to the core with such feature as now there seems to be no checks other then if summary is used
Jordy submit that PR already boi
if it's going to be merged im down.. kek
ye ye lemme check source
Done yet?
π in the process of checking if its just a copy pasta of the CanBeHidden trait
I fear its not :spongebobCry: :KekwCry:
Can't beleive it's still not done
I actually have something working π
not very happy with 4 ifs tho π im sure Dan will judge
Dan will tear you a new.......
Solution
https://github.com/filamentphp/filament/pull/13320 :SH_homerhide:
no docs update?
imo not really required but will wait what dan thinks about that.. if you need the feature i think its safe to say you're gonna attempt to call
->hidden()
I don't personallly... just felt like giving you a hard time π
π your doing a great job at that
but I suppose i've helped myself kek
If it's a feature it should be documented lol
its a bug then :trollface: