ikbentomas
ikbentomas
FFilament
Created by ikbentomas on 2/17/2025 in #❓┊help
Action in infolist does not show the form
i'm using this Action
use Filament\Infolists\Components\Actions\Action;
use Filament\Infolists\Components\Actions\Action;
12 replies
FFilament
Created by ikbentomas on 2/17/2025 in #❓┊help
Action in infolist does not show the form
Thank @awcodes , I gave that a try but it doesn't make a difference (that's also why I had ommited it from the first snippet). I tried it again after adding the modal component but it needs something something more.
12 replies
FFilament
Created by ikbentomas on 2/17/2025 in #❓┊help
Action in infolist does not show the form
The blade file is pretty straight forward
<x-filament-widgets::widget>
{{ $this->objectDetailsInfoList }}
<x-filament-actions::modals />
</x-filament-widgets::widget>
<x-filament-widgets::widget>
{{ $this->objectDetailsInfoList }}
<x-filament-actions::modals />
</x-filament-widgets::widget>
12 replies
FFilament
Created by ikbentomas on 2/17/2025 in #❓┊help
Action in infolist does not show the form
Thanks for the suggestion. I didn't know that was necessary. After adding that component to my blade file I can see two forms in the HTML.
<form wire:submit.prevent="callMountedInfolistAction">...</form>
<form wire:submit.prevent="callMountedFormComponentAction">...</form>
<form wire:submit.prevent="callMountedInfolistAction">...</form>
<form wire:submit.prevent="callMountedFormComponentAction">...</form>
When I click the edit button the html is refreshed (the html element is lighting up in the inspector). But the modal does not open, it stays like this <div x-show="isOpen" style="display: none;"> Do you have another pointer for this problem?
12 replies
FFilament
Created by zydnrbrn on 12/19/2024 in #❓┊help
Dynamic badge blade color
It's hard to see what part of your code you are referring to, using these screenshots with a large chuncks of code. Can you post small snippets formatted as code using backticks and only keep the parts that are relevant for your question?
7 replies
FFilament
Created by ikbentomas on 12/24/2024 in #❓┊help
Show navigation badge in sub navigation with count of relationship
I've updated the post and maybe it's easier to grasp with this screenshot
4 replies
FFilament
Created by Shang✨ on 12/26/2024 in #❓┊help
I have a string length issue in datagrid.
I think you could use the formatStateUsing() method to change the integer into a string (it seems to be an integer because of the E+19 at the end) https://filamentphp.com/docs/2.x/tables/columns/text#custom-formatting
2 replies
FFilament
Created by David | Fortune Validator on 8/21/2024 in #❓┊help
Dynamic Badge Count on Sub Navigation Relation Page
I think i had the same issue and i've just found a solution.
public static function getNavigationBadge(): ?string
{
$record = request('record');
return $record->attribute;
}

public static function getNavigationBadge(): ?string
{
$record = request('record');
return $record->attribute;
}

This number does show up in my sub navigation 🙂
9 replies