Daniel Plomp
Daniel Plomp
FFilament
Created by Soundmit on 3/15/2024 in #❓┊help
(video demo) Strange form behaviour in chrome and ff under linux
Yes, I did installed it yesterday and it now seems to work. At first not, but maybe some caching thing.
16 replies
FFilament
Created by Soundmit on 3/15/2024 in #❓┊help
(video demo) Strange form behaviour in chrome and ff under linux
@Soundmit @toeknee I have a RichEditor inside a Builder. It seems that the behavior you described is fixed when I use the RichEditor outside of the builder (I copy content from another field to the RichEditor), but when inside the Builder, it is not showing the changes. But they are saved in the field. This code is extracting the HTML and creates a Builder Block:
private static function extractTextToContent($rawHtml): array
{
// First, clean up the HTML using Purify
$html = Purify::clean($rawHtml);

// Add the last block if there's any content left
$blocks[] = [
'data' => ['content' => $html, 'theming' => null],
'type' => 'text_block',
];

return $blocks;
}
private static function extractTextToContent($rawHtml): array
{
// First, clean up the HTML using Purify
$html = Purify::clean($rawHtml);

// Add the last block if there's any content left
$blocks[] = [
'data' => ['content' => $html, 'theming' => null],
'type' => 'text_block',
];

return $blocks;
}
The next code is fired from a hintAction:
$set('content', []);
$blocks = $this->extractTextToContent($state);
$set('content', $blocks);
$set('content', []);
$blocks = $this->extractTextToContent($state);
$set('content', $blocks);
Can I update or refresh the Builder somehow?
16 replies
FFilament
Created by Daniel Plomp on 3/22/2024 in #❓┊help
Update two fields after select value changes
Yeah, that is also what I intended. But I also want to update the text_value_2 from the text_value_1 field. So I'll try to use your example, but I just wondered if there was a way to trigger events?
4 replies
FFilament
Created by Steelheart on 8/22/2023 in #❓┊help
Table performance improvements tips?
Any chance I can get into contact? Dutch, I presume? 😉
35 replies
FFilament
Created by Steelheart on 8/22/2023 in #❓┊help
Table performance improvements tips?
Ah ok. Btw. you have experience with a separate Redis Server for e.g. Horizon tasks?
35 replies
FFilament
Created by Steelheart on 8/22/2023 in #❓┊help
Table performance improvements tips?
Is this a boolean column? I tried your code, because I also have issues with performance, but it didn't work for me. The icon doesn't show when I use caching.
35 replies
FFilament
Created by saulens22 on 1/15/2024 in #❓┊help
[3.2.0] Filter components doesn't update / generate blur event
Yeah, I would expect something like that 🙂
17 replies
FFilament
Created by saulens22 on 1/15/2024 in #❓┊help
[3.2.0] Filter components doesn't update / generate blur event
No description
17 replies
FFilament
Created by saulens22 on 1/15/2024 in #❓┊help
[3.2.0] Filter components doesn't update / generate blur event
I'm sorry. I thought it was for a TableFilter. These won't work anymore. Just any filter doesn't update the data. Only the state in e.g. the URL.
17 replies
FFilament
Created by saulens22 on 1/15/2024 in #❓┊help
[3.2.0] Filter components doesn't update / generate blur event
I have the same issue with a SelectFilter after updating to 3.2...
17 replies
FFilament
Created by Daniel Plomp on 12/14/2023 in #❓┊help
Self-Healing URL's
OK, if I make these changes it works: In my Resource I added: protected static ?string $recordRouteKeyName = 'id'; In the getPages function I changed the edit method to this: 'edit' => Pages\EditModel::route('/{record:id}/edit'), So now it handles both scenarios. 🙂
11 replies
FFilament
Created by Daniel Plomp on 12/14/2023 in #❓┊help
Self-Healing URL's
Thanks. I will see if something like that is possible.
11 replies
FFilament
Created by Daniel Plomp on 12/14/2023 in #❓┊help
Self-Healing URL's
Yes, already tried it, but no luck 🤔
11 replies
FFilament
Created by Daniel Plomp on 12/5/2023 in #❓┊help
Weird issue with navigating through Filament
Yes, that pretty much describes how I experienced it also. Only restarting the browser didn't helped.
7 replies
FFilament
Created by Daniel Plomp on 12/5/2023 in #❓┊help
Weird issue with navigating through Filament
Hmm... good one. Didn't enable it. I switched git branches locally and did a composer update and now all seems okay... but sometimes this behaviour returns. Not sure why.
7 replies
FFilament
Created by Daniel Plomp on 12/5/2023 in #❓┊help
Create User in Filament and sent verification email
OK, clear. But is there any existing function I can call to handle this? I guess I should only have to sent an email?
7 replies
FFilament
Created by Daniel Plomp on 12/5/2023 in #❓┊help
Create User in Filament and sent verification email
You mean in the User Model?
7 replies
FFilament
Created by Daniel Plomp on 12/1/2023 in #❓┊help
Update TextInput based on Select value
No, same result unfortunately.
4 replies
FFilament
Created by ericmp #2 on 12/1/2023 in #❓┊help
EditForm - can't submit form action on set on form header actions
@joe I was able to achieve this by the following code on e.g. my EditPage. The requiresConfirmation is of course optional.
protected function getHeaderActions(): array
{
return [
$this->getSaveFormAction(),
DeleteAction::make(),
ForceDeleteAction::make(),
RestoreAction::make(),
];
}

protected function getSaveFormAction(): Action
{
return Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->requiresConfirmation()
->action(fn () => $this->save())
->keyBindings(['mod+s']);
}
protected function getHeaderActions(): array
{
return [
$this->getSaveFormAction(),
DeleteAction::make(),
ForceDeleteAction::make(),
RestoreAction::make(),
];
}

protected function getSaveFormAction(): Action
{
return Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->requiresConfirmation()
->action(fn () => $this->save())
->keyBindings(['mod+s']);
}
15 replies
FFilament
Created by ericmp #2 on 12/1/2023 in #❓┊help
EditForm - can't submit form action on set on form header actions
Like to know this as well. Or maybe how to 'move' the save button from the bottom to the top.
15 replies