BATMAN
BATMAN
FFilament
Created by BATMAN on 9/26/2023 in #❓┊help
Select dropdown too small in mobile view
No description
2 replies
FFilament
Created by BATMAN on 9/25/2023 in #❓┊help
call close function in js
No description
7 replies
FFilament
Created by BATMAN on 9/25/2023 in #❓┊help
notification in js
I have combined fullcalendar and notification together using js, where the notification will show the details of the event. However, the notifications will be stacked as i click on the second event (There are 2 notifications, 1 shows the previous event details that i first clicked, the other shows the event details of the second event i clicked). Is there any way i can cancel out or close the notification of the first event as i click on the second event? ( i just want to show 1 notification of the event instead of multiple) Even though i did try to use element.remove(), it seems like the notifications are cached and will show everything once called.
2 replies
FFilament
Created by BATMAN on 9/21/2023 in #❓┊help
modify notification css
Hi i was wondering how to modify the css properties of the notification using js
3 replies
FFilament
Created by BATMAN on 8/28/2023 in #❓┊help
PatternBlock Error
i having an error in this part
use Filament\Forms\Components\TextInput;

TextInput::make('cost')->mask(fn (TextInput\Mask $mask) => $mask
->patternBlocks([
'money' => fn (Mask $mask) => $mask
->numeric()
->thousandsSeparator(',')
->decimalSeparator('.'),
])
->pattern('$money'),
)
use Filament\Forms\Components\TextInput;

TextInput::make('cost')->mask(fn (TextInput\Mask $mask) => $mask
->patternBlocks([
'money' => fn (Mask $mask) => $mask
->numeric()
->thousandsSeparator(',')
->decimalSeparator('.'),
])
->pattern('$money'),
)
from this https://filamentphp.com/docs/2.x/forms/fields#text-input is there supposed to be a ) after the $mask before the patternBlocks?
2 replies
FFilament
Created by BATMAN on 8/23/2023 in #❓┊help
Custom saving for Checkbox column
Hi i just wanted to ask is there any way i can customise the saving process for the checkbox column?
5 replies
FFilament
Created by BATMAN on 8/1/2023 in #❓┊help
Resource is redirecting to unknown link
Hi, i have a resource that is redirecting me to an unknown local development link. (I'm using localhost:8000/admin/xxx) But it is redirecting to https:localhost/admin/xxx, even after changing it manually the problem still persists. Is there a reason why this is happening and how should i fix it? grateful for the help, thx.
3 replies
FFilament
Created by BATMAN on 7/19/2023 in #❓┊help
Different forms for create and edit
Hi i would like to ask how do i set forms differently when create and edit respectively
7 replies
FFilament
Created by BATMAN on 7/13/2023 in #❓┊help
component javascript
I know this is a bit irrelevant, but i still wanted to ask. I know that js is only run once in components part, if there is any changes to the list of components (etc filtering), the js will be affected, how can i refresh the js every time the list of components changes? or is there any other way?
1 replies
FFilament
Created by BATMAN on 7/13/2023 in #❓┊help
looping components that have custom javascript in it.
Hi i have a custom page that shows a list of components by looping it and each component has js in it. The js is stacked on top of one another as each component is loaded initially. There is filtering function that shows specific records. However, the stacked js is still loaded and is crashed due to the lack of specific components, (since some records are not shown, and js is asking for the values of the missing components). Is there a way where i can load the js according to the components it has filtered?
2 replies
FFilament
Created by BATMAN on 3/20/2023 in #❓┊help
insert default value into form with custom action in create
Hi how do i set a default value with an action button into the form in the resource file, instead of creating a new form
class CreateStatisticReport extends CreateRecord
{
protected static string $resource = StatisticReportResource::class;

protected function getActions(): array
{
return [
// ->action('impersonate'),
Actions\Action::make('set')
->action('setDefault'),

];
}
}
class CreateStatisticReport extends CreateRecord
{
protected static string $resource = StatisticReportResource::class;

protected function getActions(): array
{
return [
// ->action('impersonate'),
Actions\Action::make('set')
->action('setDefault'),

];
}
}
11 replies
FFilament
Created by BATMAN on 3/8/2023 in #❓┊help
Test custom filter
Hi, i have made a custom FromDate to ToDate custom selectDate filter into the table, how do i test the custom filter
6 replies
FFilament
Created by BATMAN on 3/8/2023 in #❓┊help
how to activate filter dropdown when user clicks into a resource
Hi i wanna know how to activate the filter to dropdown when user enters the resource page
3 replies
FFilament
Created by BATMAN on 3/6/2023 in #❓┊help
How to set table default empty, until user has filtered
Hi everyone, since i have too many records for a relation and it takes too long to render all the records, how can i set the table to be default empty, until the user has filtered out possible options or values.
6 replies