dyo
dyo
FFilament
Created by dyo on 7/4/2024 in #❓┊help
Problem with wire:init and $this->table in custom page
I have a label list to show in other part of page, that take quite long time to run the query. So I want to seperate the load between the data of the table and label data. The init is to trigger the label query.
4 replies
FFilament
Created by H.Bilbao on 3/25/2024 in #❓┊help
Accessing page table data in the widget
hmm.. I already don't have that in my widget class..
5 replies
FFilament
Created by H.Bilbao on 3/25/2024 in #❓┊help
Accessing page table data in the widget
Did the problem solved? I got the same issue..
5 replies
FFilament
Created by dyo on 6/27/2024 in #❓┊help
resetTable with table loading animation
thanks a lot for your recommendation..
5 replies
FFilament
Created by dyo on 6/27/2024 in #❓┊help
resetTable with table loading animation
can someone help me?
5 replies
FFilament
Created by dyo on 6/26/2024 in #❓┊help
Changing navigation color text.
yes the class is exist the last time i checked. but I just realize I got some warning messages when running npm build.. some of them like
...warnings when minifying css:
[WARNING] Unexpected "li" [css-syntax-error]

<stdin>:8976:42:
8976 │ .menu > :where(.dark\:disabled:is(.dark *)li > *:not(ul):focus) {
~~


[WARNING] Unexpected "*" [css-syntax-error]

<stdin>:8979:36:
8979 │ .btm-nav>.dark\:disabled:is(.dark *)*,
^


[WARNING] Unexpected "li" [css-syntax-error]

<stdin>:8988:33:
8988 │ .menu .dark\:disabled:is(.dark *)li > * {
...warnings when minifying css:
[WARNING] Unexpected "li" [css-syntax-error]

<stdin>:8976:42:
8976 │ .menu > :where(.dark\:disabled:is(.dark *)li > *:not(ul):focus) {
~~


[WARNING] Unexpected "*" [css-syntax-error]

<stdin>:8979:36:
8979 │ .btm-nav>.dark\:disabled:is(.dark *)*,
^


[WARNING] Unexpected "li" [css-syntax-error]

<stdin>:8988:33:
8988 │ .menu .dark\:disabled:is(.dark *)li > * {
Could be the issue?
10 replies
FFilament
Created by dyo on 6/26/2024 in #❓┊help
Changing navigation color text.
yes did run npm run dev and I add the style in resources/css/filament/admin/theme.css I also copied your style in that css file, while running npm run dev, and refresh the page, but the nav label still not colored black @Leandro Ferreira
10 replies
FFilament
Created by dyo on 6/26/2024 in #❓┊help
Changing navigation color text.
So this is my custom theme
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';

.fi-sidebar-item {
color: black !important;
background-color: blue !important;
}
@import '/vendor/filament/filament/resources/css/theme.css';

@config 'tailwind.config.js';

.fi-sidebar-item {
color: black !important;
background-color: blue !important;
}
i've followed the step below ⇂ First, add a new item to the input array of vite.config.js: resources/css/filament/admin/theme.css ⇂ Next, register the theme in the admin panel provider using ->viteTheme('resources/css/filament/admin/theme.css') ⇂ Finally, run npm run build to compile the theme But the custom class style is not applying. what posibly am i missing? here's my vite.config.js file
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js','resources/css/filament.css', 'resources/css/filament/admin/theme.css'],
refresh: true,
}),
],
});
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js','resources/css/filament.css', 'resources/css/filament/admin/theme.css'],
refresh: true,
}),
],
});
10 replies
FFilament
Created by dyo on 6/24/2024 in #❓┊help
previous or next button for month in datepicker
thanks for your suggestion.
5 replies
FFilament
Created by dyo on 6/22/2024 in #❓┊help
Make placeholder text black
thanks for your anwer, i'll try that..
7 replies
FFilament
Created by dyo on 6/22/2024 in #❓┊help
Make placeholder text black
how can I apply the custom style only in one of my input
7 replies
FFilament
Created by dyo on 6/11/2024 in #❓┊help
Suggestion for dependant fields
thanks for your response before.. I've decided to calculate what's in repeater in afterCreate method..
17 replies
FFilament
Created by dyo on 6/11/2024 in #❓┊help
Suggestion for dependant fields
sorry, I don't get what you mean about "set the placeholder content and make it reactive" and "use an observer"
17 replies
FFilament
Created by dyo on 6/11/2024 in #❓┊help
Suggestion for dependant fields
yup, I don't want the user to edit the total price directly.. i'm still in filament v2.. did you mean mutateFormDataBeforeCreate? how can I calculate my repeater data there?
17 replies
FFilament
Created by dyo on 6/11/2024 in #❓┊help
Suggestion for dependant fields
i've tried using default and fromatStateUsing with the same function as placeholder above, but the value isn't updated after changing or filling all of 3 other inputs, still 0
17 replies
FFilament
Created by dyo on 6/11/2024 in #❓┊help
Suggestion for dependant fields
TextInput::make('total_price')
->placeholder(function (Closure $get) {
$value = 0;
$value += Room::find($get('room_id'))?->price;

if ($get('discount')) {
$value -= $get('discount');
}

foreach ($get('additional_services') as $key => $row) {
$value += $row['price'];
}

return number_format($value);
})
->disabled(),
TextInput::make('total_price')
->placeholder(function (Closure $get) {
$value = 0;
$value += Room::find($get('room_id'))?->price;

if ($get('discount')) {
$value -= $get('discount');
}

foreach ($get('additional_services') as $key => $row) {
$value += $row['price'];
}

return number_format($value);
})
->disabled(),
How can I submit the form with what is defined in total_price placeholder?
17 replies
FFilament
Created by dyo on 6/13/2024 in #❓┊help
Problem in accessing widget current record
thanks, that what I need..
8 replies
FFilament
Created by dyo on 6/13/2024 in #❓┊help
Problem in accessing widget current record
yes I did, but $this->record is null
8 replies
FFilament
Created by dyo on 6/12/2024 in #❓┊help
About stripCharacters in TextInput Custom Filter
can someone help me?
3 replies
FFilament
Created by dyo on 6/11/2024 in #❓┊help
Suggestion for dependant fields
Can someone help me?
17 replies