wyChoong
Actions button omit stating `->action(function_name)`
the question is, is it possible to omit stating
->action(function_name)
and have the function called automatically? is it not possible or I missed out in the doc
very often I have action buttons in page/form and is defined as below
and have the functions defined as
4 replies
how to identify which button triggered action in single form with multiple buttons
I have a resource that in edit page
I added an additional action
now the question is, if the record that I'm going to reject, I don't need the to validate the uniqueness of the reference field, how can I achieve this
4 replies
using associative array for table/form schema array
is there any concern in using associative array for form/table schema, eg:
and then I will have some api to customize the schema fields, eg:
this may also extend to any methods in filament that return array such as
getHeaderActions
array etc
is this a pattern that Filament would advise against with?7 replies
registering widgets
so i have created a widget for a resource, in the doc it mentioned to register the widget in Resource and also the page.
my question is , is it compulsory to register both or just the resource page is enough? currently I'm just registering in the View page and it seems to work, is there anything I'm missing? why should we register in Resource also?
2 replies
Panels visibility
I have this use case where I would want to setup the panels in such way:
1) have multiple panels but not all users should see all the panels
2) when login, they should use /login instead of /{panel}/login, it will bring them to panel they have access after login
what api can I use to configure?
17 replies
built in Widgets not configurable
widget's props are protected and there is no way to configure it
of course we can just extend it, but if there is an api like
configureUsing
it will be helpful and benefits plugins developer to provide customization14 replies
fields with filepond load the entire files from server
When displaying fields with filepond in Edit/View page, the entire file is loaded, this could be problematic:
- none previewable file, eg: pdf, only loading the file to display file size
- waste of bandwidth
can the field to be enhanced to mock the file if its not
image/*
?
https://pqina.nl/filepond/docs/api/instance/properties/#files:~:text=You%20can%20also,the%20file%20data.1 replies