TK
Change order of top bar icons
How do I change the order of the icons in the top bar?
To be specific about my case, I have the following order:
search bar :: language switcher (plugin) :: database notifications icon :: default menu icon
I want:
search bar :: database notifications icon :: language switcher (plugin) :: default menu icon
It shouldn't be this hard to define an order per item right?4 replies
How to replace the reorder indicator?
When enabling reordering, the text
Drag and drop the records into order.
is shown.
This comes from __('filament-tables::table.reorder_indicator')
.
Does anyone know how I can replace this text? I would like to state something like Drag and drop the :model into order.
.7 replies
How to route to a page with a given filter?
Currently I have a resource with a relation resource. Those relation resource records should get a url to another page with there given property as a filter.
So, in my
ExampleRelationManager
I have this:
This is not working. I assume there is a correct way to give filters to the ::getUrl()
method, just like given a route parameter.
For the record, the URL to end up with, should be: https://example.local/...?tableFilters[unit][reservable][code]=UN100000
Help?20 replies
getUploadedFileNameForStorageUsing() on FileUpload::configureUsing() does not work :S
Using
->getUploadedFileNameForStorageUsing()
when defining defaults for file uploads, does not work.
So, doing this inside the AppServiceProvider
does not work:
Not sure why this specifically is for ->getUploadedFileNameForStorageUsing()
. I think it would be nice defining a default way files are stored globally, instead of doing this on all FileUpload::make()
everywhere.
Note, using the exact same function on Fileupload::make()->getUploadedFileNameForStorageUsing()
, does work!
Anyone got an idea? Is this a bug?3 replies
How to change the color of the sort icon when active?
I have a table with multiple columns and multiple columns is sortable (asc, desc).
All arrow icons beside the column header texts are grey. Whenever I sort a column, the icon get a little big darker "indicating" it is active.
Since this color change is so minimal, I want to set the color of that icon when it's active.
Anyone got an idea?
6 replies
How to prefill a TextInput on the create resource form?
So when I want to create a new user for example, I automatically want a TextInput to be filled with a certain value. And this should be visible to the users and not editable.
I got everything, except for the part on how to fill that input text field.
Anyone?
6 replies
Adjust form fields shown when user views resource
Filament has a default built-in ViewAction(), which you can add to an ActionGroup() in your table() function, so in the overview you can click on "view record". By default, all the fields are disabled and shown in a modal.
My question: how do I hide certain inputs in this modal?
Context: On the edit page, people can edit the password. But when the record is shown in "view mode", no need to show those password fields.
I hope you guys can help me out.
1 replies