Kymset
Testing Relation Managers
I am trying to build a test suite for my application.
I am trying to test the form() method on my relation manager as it is not being hit for coverage.
I have been able to use this for being able to test the table works:
https://filamentphp.com/docs/3.x/panels/testing#relation-managers
I just need to get the form method tested
4 replies
Chart Filters - Date picker
I have a chart and am looking to put a date picker onto it so the user can select their own timeframes instead of the dropdown.
Has anyone made something like this? How would you go creating this, I assume a custom component that wraps around the Chart widget.
4 replies
Widget Sections
I have a dashboard which I want a lot of stats on.
I want to be able to split each of the stat into a section like you get on a form.
For example I have stats on:
Users
- Total Users
- Total Logged In
- Graph of User Logged in
Orders
- Total Orders
- Total Revenue
- Daily / Weekly / Monthly Sales
Tracking
- Most Commonly clicked Items
- Most Added to Carts
Other Stats...
How can I best achieve this? Is this a custom page or can this be done through base filament?
4 replies
Header Action use form data
I am trying to make a header action that is a preview within my create and edit forms.
So you click it and a modal pops up and shows what it will look like in the front end of my application.
I have gotten a custom modal to pop-up and display.
The issue I am having is it only uses saved data. Is there a way I can make it use the data from the form.
Code I am using within getHeaderActions():
Action::make('preview')
->action(fn (Post $record) => $record->advance())
->modalContent(fn (Post $record): View => view(
'filament.pages.post.preview',
[
'post' => $record
]))
9 replies
Dynamic Customise Columns for Table
I have checked the docs and I don't think it exists.
Am I able to add some kind of filter / option so I can select which fields I want to see in a table.
For example I have a table with the following columns:
Id | Name | Email | Address 1 | Address 2 | Country | Zip | Phone | Mobile | Actions
Some times I only care about seeing the Name, email and Actions.
Is there some functionality so I can hide the other fields?
5 replies