bernhard
Hint Action - Copy value
I wanna add a hint action to a
Builder
field, which should copy the $state into the browser clipboard.
This is what I got so far:
This already show the button and on click it dd
's the json of the Builder
field state. But how to copy the value to clipboard, instead of dd
ing? How can I call JS navigator.clipboard.writeText(copyText.value);
?
Just to understand, what I wanna achieve: Later I will change it to
so that I can import/export the Builder value.4 replies
Action outside of the panel not showing modals
I have a component outside of the panel:
When clicking on the button, nothing happens, no confirm modal is shown. In Dev-Toolbar I see no error. Only thing I can see is that the attribute
disabled=true
is set for a second.
When I now remove the ->requiresConfirmation()
and click again, I can see the dd
output.
Same goes for custom modals - the modal isn't show. Nothing happens:
9 replies
Filament v2 - Color picker lazy/debounce
I am using filament v2 and I have a colorpicker field. Since I use the value of this field in another field, the field is reactive:
This works, but I just wanna get updates, after the color was picked and not on moving the circle of the colorpicker around. Neither
lazy()
nor debounce("5000ms")
works?
Is this a bug?2 replies
Weird login error after livewire update
After
composer update
I can't login to filament. I see the login form but the password field is a regular input field (i can see the password when typing) and when clicking on the login button, I get
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
I could track it down to the latest release (3.4.7
) of livewire. When doing
It is working again.
Has anyone seen this issue? Is this Filament or Livewire related?4 replies
FileUpload in process, how to disable button outside panel?
I have an v2 form outside the panel with an FileUpload. How to disable a submit button, while FileUpload is ongoing?
wire:loading.attr="disabled"
is only working for the save process itself, but not for the uploading in background.
This is what I have tried atm:
1 replies
"Create another" and prefill field
When creating a new record in the panel and clicking on the "create & create another" button, is there a way to reuse some of the values of the current fields for the new "new form"?
For example, I have the following fields
- name (string)
- category_id (Select with relationship)
- country_id (Select with relationship)
When a user now types/selects:
- name: XYZ
- category_id: 1
- country_id: 4711
and clicks on the "create & create another" button, the entry is saved and he is redirected to a new and empty "Create" form. I want that the new "Create" form is now prefilled with
- category_id: 1
- country_id: 4711
Possible?
5 replies
Can't use svg in TextColumn
What I want to achive is a column which shows an icon and when you click on it, a defined text is copied to the clipboard.
The problem is, that the
IconColumn
has no copyable
method, so I tried to use the TextColumn
:
this works as expected and it shows the text "Copy". Now I tried to use an icon:
but the column is empty. Any ideas?31 replies
Property type not supported in Livewire when using computedProperties
I tried to create a resource for some third party model (
Spatie\UptimeMonitor\Models\Monitor
). This model uses the following method:
On edit page, I get now an exception Property type not supported in Livewire for property: [{}]
The weird thing is, that i get this exception, even if I dont use the url
property at all in the form:
When commenting the getUrlAttribute out from the package, the error isn't thrown.
Any ideas how to get around this error, without messing up the package?6 replies
Allow comma sign in TagsInput
Is there a way, to allow a comma sign in an TagsInput value? As soon as I enter a comma sign "," in the TagsInput, the tag is added. But I just wanna add for example names as tags in the format
- "John, Doe"
- "Foo, Bar"
- "Jean-Claude, Van-Cool"
So is there a way, do disable tag recognition with ",", and just use Enter (or change it to semicolon)
3 replies
Issues beeing automatically closed for no reason
I have created this issue https://github.com/filamentphp/filament/issues/9459 on github, but the bot closed it 1 minute after. I have provided all necessary informations, I created a repo to reproduce. What did I wrong?
6 replies
Multiple tables on the same page
Is there a way to have multiple tables on the same page (not inside a panel)? I have a fullpage livewire component, where I display 2 tables and a button. Something like this:
Where the
submit
method does nothing atm (but gets called - tested it with dd):
This works - both tables are rendered correctly.
But when I click the "Button" button, I get the following error in the JS console:
The index.js is just the combined js from livewire, where the error code looks like:
Furthermore, the two tables also swap positions (table2 is now the first table, table1 the second).
When removing one of the table (doesn't matter which one), the error doesn't occure.
Any ideas?
PS: All the table functionalities, like paging, are working.3 replies
Using dates for filtering charts (widget)
Is there a build in way, to use dates (datepicker) for filtering chart widget?
I know, I can create a selectbox with something like "last 7 days", "last 30 days" ,etc. but how to filter exact dates and show a filter which is not a selectbox?
7 replies
Action run code and open url in new tab
Is there a way, to open a new tab in the
action
method of an (Table-)Action
? Something like this:
I know, there is the method url
, but I wanna run the code only, when the user clicks on the button. The action will generate a token (and save it to db) and the token will be attached to the url.
Since I wanna have a new tab, redirect
isn't an option. Is there a way, to just call JS on an action?3 replies
Two panels with two auth guards, logges me out from both
I have two panels: admin and partner. First is using the web guard, second the partner guard (see config/auth.php):
It works. When navigating to
/admin
I can login as admin, and when going to /partner
I can login as a partner. Now I am logged in as 2 different users as expected.
But when I click on logout on one of the panel, I am logged out in the other panels as well. That makes no sense?
When putting on of the panels on a (sub-)domain, then it works as well, but when I log out from one, I stay logged in in the other panel (this is the expected behaviour IMHO).12 replies
Table column searchable - how to show user which columns are searchable
In the table builder, you can make columns searchable, which is great. For example:
So the
name
and title
columns are searchable, but not the id
and description
column.
From an end user perspective: how to know, which fields/columns are searchable and which not? When I enter for example 12
, without any extra knowledge / information, I would expect to get the row with the id 12 or at least with 12 in it.
Why not adding the names (labels) of the columns as a placeholder in the searchbox. Or mark the searchable columns somehow ?5 replies