HL
HL
NNuxt
Created by Galexrt on 4/20/2024 in #❓・help
[USelectMenu/UInputMenu] searchable/search - Maximum recursive updates exceeded issue
Was this issue solved somehow? Right now as a temporary solution I put my USelectMenu, UDropdown and UPopover (basically all popover) elements into a <ClientOnly> tag which solves the issue.
2 replies
FFilament
Created by HL on 4/5/2024 in #❓┊help
How can I conditionally disable a custom input field?
The issue is in the view file, I have to conditionally assign a value to the disabled attribute like this: :disabled=$isDisabled() The problem is, that $isDisabled() is always true for some reason, even if i try
CopyableTextInput::make('loginname')
->isDisabled(false),
CopyableTextInput::make('loginname')
->isDisabled(false),
or
CopyableTextInput::make('loginname')
->disabled(false),
CopyableTextInput::make('loginname')
->disabled(false),
There is no way to conditionally disable my custom field, it stays on whatever is hard coded in the view file, can't pass data to it to disable it (can pass other data like state or placeholder etc.)
4 replies
FFilament
Created by HL on 3/27/2024 in #❓┊help
In my table's getEloquentQuery() method should I eager load relations?
Thank you very much, pretty clear answer:)
5 replies
FFilament
Created by HL on 3/25/2024 in #❓┊help
In a table, is it possible to have a header label for the table actions column?
Thank you!
5 replies
FFilament
Created by HL on 11/29/2023 in #❓┊help
Updating Dashboard filters doesn't update ChartWidget-s
Fixed with new update, thank you!
6 replies
FFilament
Created by HL on 11/29/2023 in #❓┊help
InteractsWithPageFilters doesn't refresh the Widget on filter change
I'm just really busy this week
11 replies
FFilament
Created by HL on 11/29/2023 in #❓┊help
InteractsWithPageFilters doesn't refresh the Widget on filter change
Yes ty, it was me:)
11 replies
FFilament
Created by HL on 11/29/2023 in #❓┊help
Updating Dashboard filters doesn't update ChartWidget-s
bump
6 replies
FFilament
Created by HL on 11/29/2023 in #❓┊help
InteractsWithPageFilters doesn't refresh the Widget on filter change
Ahh found the issue, this only updates BaseWidgets, not ChartWidgets
11 replies
FFilament
Created by HL on 11/29/2023 in #❓┊help
InteractsWithPageFilters doesn't refresh the Widget on filter change
protected static ?string $pollingInterval = '10s'; Using this in the widget, after changing the filter and the 10s is done, it updates with the correct filtered data, but if it is set to 'null' it won't update the chart, only after a refresh
11 replies
FFilament
Created by HL on 10/24/2023 in #❓┊help
Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
->indicateUsing(function (array $data): array {
$indicators = [];
if ($data['game'] ?? null) {
$indicators['game'] = 'Game: ' . Game::find($data['game'])->displayname;
};
if ($data['server'] ?? null) {
$indicators['server'] = 'Server: ' . Server::find($data['server'])->abbrevation;
};
return $indicators;
}),
->indicateUsing(function (array $data): array {
$indicators = [];
if ($data['game'] ?? null) {
$indicators['game'] = 'Game: ' . Game::find($data['game'])->displayname;
};
if ($data['server'] ?? null) {
$indicators['server'] = 'Server: ' . Server::find($data['server'])->abbrevation;
};
return $indicators;
}),
14 replies
FFilament
Created by HL on 10/24/2023 in #❓┊help
Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
Then you need an indicator for it
14 replies
FFilament
Created by HL on 10/24/2023 in #❓┊help
Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
->query(function (Builder $query, array $data): Builder {
return $query
->when(
$data['game'],
fn (Builder $query, $game) => $query->whereHas(
'games',
fn (Builder $query) => $query->where('games.id', $game)
)
)
->when(
$data['server'],
fn (Builder $query, $server) => $query->whereHas(
'servers',
fn (Builder $query) => $query->where('servers.id', $server)
)
);
})
->query(function (Builder $query, array $data): Builder {
return $query
->when(
$data['game'],
fn (Builder $query, $game) => $query->whereHas(
'games',
fn (Builder $query) => $query->where('games.id', $game)
)
)
->when(
$data['server'],
fn (Builder $query, $server) => $query->whereHas(
'servers',
fn (Builder $query) => $query->where('servers.id', $server)
)
);
})
14 replies
FFilament
Created by HL on 10/24/2023 in #❓┊help
Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
Then a query for it
14 replies
FFilament
Created by HL on 10/24/2023 in #❓┊help
Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
Filter::make('accounts')
->form([
Grid::make(2)
->schema([
Select::make('game')
->relationship('games', 'name')
->live()
->placeholder('All'),

Select::make('server')
->relationship(
name: 'servers',
titleAttribute: 'name',
modifyQueryUsing: function (Builder $query, Get $get) {
if ($get('game') != null) {
return $query->where('servers.game', $get('game'))->orderBy('servers.game', 'asc')->orderBy('servers.id', 'asc');
} else {
return $query->orderBy('servers.game', 'asc')->orderBy('servers.id', 'asc');
};
}
)
->live()
->placeholder('All'),
]),
])
Filter::make('accounts')
->form([
Grid::make(2)
->schema([
Select::make('game')
->relationship('games', 'name')
->live()
->placeholder('All'),

Select::make('server')
->relationship(
name: 'servers',
titleAttribute: 'name',
modifyQueryUsing: function (Builder $query, Get $get) {
if ($get('game') != null) {
return $query->where('servers.game', $get('game'))->orderBy('servers.game', 'asc')->orderBy('servers.id', 'asc');
} else {
return $query->orderBy('servers.game', 'asc')->orderBy('servers.id', 'asc');
};
}
)
->live()
->placeholder('All'),
]),
])
14 replies
FFilament
Created by HL on 10/24/2023 in #❓┊help
Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
You need to do a Filter, and make a form for it with multiple Select fields
14 replies
FFilament
Created by HL on 10/24/2023 in #❓┊help
Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
I did it with custom filters, no easy way to do it
14 replies
FFilament
Created by HL on 10/24/2023 in #❓┊help
Modify SelectFilter query based on another SelectFilters value (Dependent Filters)
Yes to use this I need custom filters with queries that I need to write myself, that was the point of the question, if I can avoid it
14 replies
FFilament
Created by HL on 8/31/2023 in #❓┊help
->recordUrl global setting not working
It's still not fixed, better of just adding this to every resource, relation manager and table widget for now
12 replies
FFilament
Created by HL on 8/16/2023 in #❓┊help
Set dark mode on by default
also you need to have $panel->darkmode(true) for it I think, so only with one true not two
13 replies