Marco
Marco
FFilament
Created by wazkaz on 10/21/2024 in #❓┊help
Button blade component customization
Yes
<x-filament::button :loading-indicator="false" wire:click="openNewUserModal">
<x-filament::button :loading-indicator="false" wire:click="openNewUserModal">
5 replies
FFilament
Created by MZX on 8/23/2024 in #❓┊help
No styling in InfoList when used in a livewire component?
not sure what you mean, how would you like it to show?
20 replies
FFilament
Created by MZX on 8/23/2024 in #❓┊help
No styling in InfoList when used in a livewire component?
dont forget to npm run build or npm run dev after
20 replies
FFilament
Created by MZX on 8/23/2024 in #❓┊help
No styling in InfoList when used in a livewire component?
Where is your blade file located, maybe you haven't added the path to the tailwind.config.js content array
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
theme: {
extend: {}
},
}
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./resources/views/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
theme: {
extend: {}
},
}
20 replies
FFilament
Created by Jérôme on 8/23/2024 in #❓┊help
add action on infolist/view on relation manager?
I think you can just add the Infolist Actions component so in you RelationManager class:
public function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
TextEntry::make('id'),
Actions::make([
Actions\Action::make('custom_action')
->action(fn () => dd('Custom action'))
]),
]);
}
public function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
TextEntry::make('id'),
Actions::make([
Actions\Action::make('custom_action')
->action(fn () => dd('Custom action'))
]),
]);
}
5 replies
FFilament
Created by jepewsykes on 8/23/2024 in #❓┊help
how to get selected table record inside list page resource
Sorry im not sure, maybe someone else would have an idea. I do know it would work fine if you use a bulk action, then you just get a collection of all the selected objects. Or if you dont care about any filters you could just query the modal in the header action
5 replies
FFilament
Created by jepewsykes on 8/23/2024 in #❓┊help
how to get selected table record inside list page resource
not sure but maybe you just want to used the build in export? https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export
5 replies
FFilament
Created by Jr.Pikong on 8/23/2024 in #❓┊help
filament table hidden record null
I dont think that you can. if one record has PERDANA LITED and the record below has VOUCHER The table cant render both columns in the same place Maybe create an extra resource where you filter the query using based on the category: https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query
13 replies
FFilament
Created by Jr.Pikong on 8/23/2024 in #❓┊help
filament table hidden record null
You cant hide a column based on the record, it wont be able to create the table. If you have 2 entries where one has the category and the other hasn't, how would you display the table
13 replies
FFilament
Created by Alvika Aji Prahasta on 8/22/2024 in #❓┊help
Create new component have an error
You cant add a livewire component directly into a form use:
use Filament\Forms\Components\Livewire;
use Filament\Forms\Components\Livewire;
https://filamentphp.com/docs/3.x/forms/advanced#inserting-livewire-components-into-a-form
3 replies
FFilament
Created by mile4841 on 8/22/2024 in #❓┊help
Why does TextInput does not want to save value
The name of the textInput = contents.{$lang->value}.title The save will try to resolve the relation contents.[lang] right? and save it to the title column on that relation. Does that relation even exist in the contents model?
7 replies
FFilament
Created by Marco on 6/10/2024 in #❓┊help
Select input value not set in dynamically created Tab component
I fixed it by adding:
if ($get($$selectedMachine . '_machine_option') === null) {
$set($$selectedMachine . '_machine_option', null);
}
if ($get($$selectedMachine . '_machine_option') === null) {
$set($$selectedMachine . '_machine_option', null);
}
before creating the Select component, It feels a bit wrong but at least its works for now 😅
3 replies
FFilament
Created by Marco on 6/10/2024 in #❓┊help
Select input value not set in dynamically created Tab component
Is there anyone who can help me?
3 replies