Jon Mason
searchable select in infolist?
I need to display some information, but need to allow the user to interact with it. I need to use a searchable select. Ideally I'd use a table, which is what I'm currently doing, but the select isn't searchable, which is becoming problematic.
I've briefly attempted to make an infolist with a form inside it, but it doesn't seem to be working from my initial quick attempt. Before I spend more time I thought I'd just ask if anyone has done anything like this and how you did it? Is there a better way I'm not thinking of?
3 replies
Cannot mutate reactive prop InteractsWithPageFilters Trait
I'm getting an error on my dashboard widget:
cannot mutate reactive prop [filters] in component
. I'm using the ApexChartWidget plugin, but I don't believe it's related to that. It seems to be related to the #[Reactive] prop on the InteractsWithPageFilters
trait.
I have another component that has a filters form and I'm dispatching an event when a user changes the filter. That seems to work fine, but when I switch tenants, if the user had a filter other than "all" then it's stored in the session when they navigate to the new dashboard. In the mount method I'm checking the tenant for the user and setting to "all" if not present. The error occurs just after that happens. I don't understand why I'm not able to update the prop in the mount method?
2 replies
searchable on SelectColumn?
Is searchable not a working method on a SelectColumn? No matter where I put
searchable()
it doesn't seem to work.
I can also just take everything off except searchable
and options
and it still doesn't work. It's displayed as a normal select box without search capability.3 replies
TextEntry with static url, how to set text of anchor tag?
I have an infolist that I'm trying to add a link to like so:
The
a
tag is in the dom, but there's no text, so it's not showing up as anything. I'm sure I'm missing something stupid, but it doesn't appear to be in the docs, and looking at the source code, I don't see a method to set the text. ->label()
isn't doing it.6 replies
is it possible to add dividers in a grouped action blade / livewire component?
I see that you can add dividers to an action group here: https://filamentphp.com/docs/3.x/actions/grouping-actions#adding-dividers-between-actions.
Is it possible to do it in a livewire component where you're defining the action group in blade?
4 replies
Error on Deployment: No such file for FilamentAsset
I have this in my AppServiceProvider's boot method:
and I have this in my package.json:
My deployment is failing in the
@php artisan Filament::updgrade
composer script:
copy(node_modules/js-confetti/dist/js-confetti.min.js): Failed to open stream: No such file or directory
This is with Laravel Forge.
What am I doing wrong, or what do I need to change in order for this to work? Perhaps I need to run npm install
on my server?18 replies
table action modal form refresh?
Since I've been unable to get the FileUpload component to display a preview when a file is present on the model, I decided to make a custom "FileAttachment" field, that shows the attachment and has a button to click to remove the attachment. I'm using this inside of a table row action and it's working as expected except the form isn't updated when the wire:click event is completed.
3 replies
is it possible to set the existing avatar on page load?
Ony my edit profile page, the user can select an avatar using the file upload component. After it's selected, or when the page loads if they've previously selected one, I want to populate the upload component with the existing file from the url I have stored in my users table. It's not obvious from the docs how to do that, or if it's possible. I tried just adding that as a field in $this->form->fill() in my mount method, but that's not doing it.
8 replies
Make user profile form wider?
Can't seem to make the form on the user profile page wider. I tried extraAttributes and attaching a class that way, but it's the parent of the form that's controlling the width, the
<main>
div with a class of fi-simple-main
. I don't want to override the width of that div in my css file because that would affect other pages, and as far as i'm aware, css can't go up the dom from the current element. Can someone clue me in on how to do this? It's probably something super obvious and I'm being dense...
10 replies