MikePageDev
MikePageDev
FFilament
Created by TheSoulrester on 10/17/2024 in #❓┊help
widget width "$columnSpan = 'full';" doesn't work with blade-templates
I kind of is. What you have done here is convert to a Fliament custom widget
24 replies
FFilament
Created by TheSoulrester on 10/17/2024 in #❓┊help
widget width "$columnSpan = 'full';" doesn't work with blade-templates
Sorry, I have had a hectic week and weekend. The way I would go about what you are trying to achieve is Create a custom widget https://filamentphp.com/docs/3.x/panels/dashboard#custom-widgets And implement the HasTable interface https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component#adding-the-table
24 replies
FFilament
Created by TheSoulrester on 10/17/2024 in #❓┊help
widget width "$columnSpan = 'full';" doesn't work with blade-templates
I can have a look latter. It might be easer for me to do a pull request so you can see what I mean. I ahve just thought of a nother option. Creat a custom widget that implements HasTable https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
24 replies
FFilament
Created by TheSoulrester on 10/17/2024 in #❓┊help
widget width "$columnSpan = 'full';" doesn't work with blade-templates
Oh, of course. I believe the css for 'column span' is in the widget template. I would personally convert this to a Livewire component, then call it in a custom filament widget and set the column span there. There may be a better way, but I need to look at the source code.
24 replies
FFilament
Created by TheSoulrester on 10/17/2024 in #❓┊help
widget width "$columnSpan = 'full';" doesn't work with blade-templates
Is there a reison that you changed from a filament-widget component to a blade template?
24 replies
FFilament
Created by TheSoulrester on 10/17/2024 in #❓┊help
widget width "$columnSpan = 'full';" doesn't work with blade-templates
Can we see the corasponding blade file please.
24 replies
FFilament
Created by Matthew on 10/15/2024 in #❓┊help
Widget Owner
Yes
5 replies
FFilament
Created by 2me2u on 10/15/2024 in #❓┊help
Do I need to install a Laravel starter kit to use FilamentPHP?
If you are using Filament, you don't need a Laravel auth package because it is all in the filament.
5 replies
FFilament
Created by 2me2u on 10/15/2024 in #❓┊help
Do I need to install a Laravel starter kit to use FilamentPHP?
It does. All you need to do is install Filament into a Laravel app, and you're away.
5 replies
FFilament
Created by Matthew on 10/15/2024 in #❓┊help
Widget Owner
You need to define the $record property.
public ?Model $record = null;
public ?Model $record = null;
Then you can access the model through $record
5 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
I have been having a play around and posting some questions.
17 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
I used this for a pie chart a little while ago. I had trouble trying to fire a livewire event on click. Has that been improved?
17 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
Update: The data label package works fine on the line chart but doesn't seem to work on the pie chart. Does anyone have any idea why this might be?
17 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
I was just wondering if there are any more thoughts on this.
17 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
No description
17 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
Thank you I must have done something wrong
17 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
I have gone through the steps in the docs, but still no luck
17 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
Ah, ok, so it looks like a separate plugin. OK, I will give this a go.
17 replies
FFilament
Created by MikePageDev on 7/2/2024 in #❓┊help
Adding percentages to pie chart
Hi, thanks for the tip, but I still can't get it working. Here are the two options I have tried. In the first one, the chart didn't render.
protected function getOptions(): RawJs
{
return RawJs::make(<<<JS
{
scales: {
y: {
grid: {
display: false,
},
ticks: {
display: false,
},
},
x: {
ticks: {
display: false,
},
},
},
plugins: {
datalabels: {
formatters: (value) => 'hello' + value;
},
},
}
JS);
}
protected function getOptions(): RawJs
{
return RawJs::make(<<<JS
{
scales: {
y: {
grid: {
display: false,
},
ticks: {
display: false,
},
},
x: {
ticks: {
display: false,
},
},
},
plugins: {
datalabels: {
formatters: (value) => 'hello' + value;
},
},
}
JS);
}
return RawJs::make(<<<JS
{
scales: {
y: {
grid: {
display: false,
},
ticks: {
display: false,
},
},
x: {
ticks: {
display: false,
},
},
},
plugins: {
datalabels: {
formatters: function (value) {
return 'hello' + value;
},
color: '#fff',
},
},
}
JS);
return RawJs::make(<<<JS
{
scales: {
y: {
grid: {
display: false,
},
ticks: {
display: false,
},
},
x: {
ticks: {
display: false,
},
},
},
plugins: {
datalabels: {
formatters: function (value) {
return 'hello' + value;
},
color: '#fff',
},
},
}
JS);
For the last one, the chart was rendered, but there was no label.
17 replies
FFilament
Created by MikePageDev on 2/26/2024 in #❓┊help
Row actions in relationship manager not doing anything
I will see what I can do.
47 replies