Advanced Tables (Plugin) Example / advice.

I thought it might be best for me to put this in the help section and not just the community tab. is there a github repo showing some examples like for the demo? I've tried setting up filters on a table and all I want to do is say "For the Discipline filter, use the relation and a SELECT box". Clearly I am doing something wrong as it seems to preload this filter in when I hit reset. I only what the filter to appear when the user selects it. I am sure it is dead easy but I just missed it.
->filters([
AdvancedFilter::make()
->filterPickerSearch()
->filterPickerMaxHeight('240px')
->includeColumns()
->filters([
SelectFilter::make('discipline.name')
->relationship('discipline', 'name')
->multiple()
->preload(),
])
//
,
])
->filters([
AdvancedFilter::make()
->filterPickerSearch()
->filterPickerMaxHeight('240px')
->includeColumns()
->filters([
SelectFilter::make('discipline.name')
->relationship('discipline', 'name')
->multiple()
->preload(),
])
//
,
])
3 Replies
403gtfo
403gtfoOP5mo ago
No description
awcodes
awcodes5mo ago
The demo is available publicly https://github.com/filamentphp/demo
GitHub
GitHub - filamentphp/demo: Source code for the demo.filamentphp.com...
Source code for the demo.filamentphp.com website. Contribute to filamentphp/demo development by creating an account on GitHub.
403gtfo
403gtfoOP5mo ago
Many thanks. I must be blind as heck cause I couldn't find it to save my life >_> @Kenneth Sese has pointed out I can use
->defaultFilters([])
->defaultFilters([])
to stop it auto appearing.
Want results from more Discord servers?
Add your server