Erdos Holland
Erdos Holland
FFilament
Created by Erdos Holland on 11/20/2024 in #❓┊help
New Record Modal does not work in Select Form
Okay, it turns out you need to add
<x-filament-actions::modals/>
<x-filament-actions::modals/>
to the livewire component's blade file. Thanks for taking the time though!
4 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
that fixed it. thanks a lot for your help!
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
Inside the <head> element yes
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
Yes
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
it doesnt
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
No description
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
yeah looking back im not sure why I thought that.
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
Okay, that seems to have partially solved the issue. The icon colors change but the table background turned white. With the way it was worded in the doc, I thought each component loaded app.blade.php so I didn't have to declare the styles in my actual layout file. Am I supposed to extend app.blade.php as my main layout, or can I just have that file and create my own layout to include in my files?
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
just for the sake of sanity, am I doing it right? In a new project with only the table builder installed, the issue still exists and it also seems that trying to sort by either columns doesnt work (it doesnt do anything).
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
this is the livewire component used to render the table
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
<?php

namespace App\Livewire;

use App\Models\Absence;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Concerns\InteractsWithTable;
use Filament\Tables\Contracts\HasTable;
use Filament\Tables\Table;
use Livewire\Component;

class AbsenceTable extends Component implements HasForms, HasTable
{

use InteractsWithForms;
use InteractsWithTable;

public function table(Table $table): Table{
$user = auth()->user();
return $table
->query(Absence::query())
->columns([
TextColumn::make('date')
->sortable(),
IconColumn::make('pending')
->sortable()
->boolean()
])
->filters([])
->actions([])
->bulkActions([]);
}
public function render()
{
return view('livewire.absence-table');
}
}
<?php

namespace App\Livewire;

use App\Models\Absence;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Concerns\InteractsWithTable;
use Filament\Tables\Contracts\HasTable;
use Filament\Tables\Table;
use Livewire\Component;

class AbsenceTable extends Component implements HasForms, HasTable
{

use InteractsWithForms;
use InteractsWithTable;

public function table(Table $table): Table{
$user = auth()->user();
return $table
->query(Absence::query())
->columns([
TextColumn::make('date')
->sortable(),
IconColumn::make('pending')
->sortable()
->boolean()
])
->filters([])
->actions([])
->bulkActions([]);
}
public function render()
{
return view('livewire.absence-table');
}
}
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
I can do that yes. I'll try to replicate the issue in a new project and get back to you.
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
Since this is for work I'd prefer not to release the entire project. I can post all related blade files as well as whatever config files are needed. Just tell me which
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
when you say this code do you mean the entire laravel project?
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
ive also followed the steps in #✅┊rules
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
yes, I also restarted my pc just in case that was the problem but its still the same
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
import defaultTheme from 'tailwindcss/defaultTheme';
import preset from './vendor/filament/support/tailwind.config.preset';

/** @type {import('tailwindcss').Config} */
export default {
presets: [preset],
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
};
import defaultTheme from 'tailwindcss/defaultTheme';
import preset from './vendor/filament/support/tailwind.config.preset';

/** @type {import('tailwindcss').Config} */
export default {
presets: [preset],
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
'./app/Filament/**/*.php',
'./resources/views/filament/**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
};
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
No description
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
No description
39 replies
FFilament
Created by Erdos Holland on 11/3/2024 in #❓┊help
Icon Color Issues
only the table builder
39 replies