CORONEL
Chart widget with chart.js plugins
For anybody going through this same issue while trying to use chartjs-datalabels-plugin.
This is a issue with chartjs-datalabels-plugin itself, and only happen for doughnut and pie charts. I don't think anybody there will fix it, the Repo is pretty much idle.
I found an alternative that 'kinda' works:
chart.js-plugin-labels-dv
After installing the package through npm, the .js file will be like this:
14 replies
Custom table in the resource page
Maybe you will be better off creating a custom page. You can extend its class from one of the base resource pages of Filament (like EditRecord, etc) to have the base functionality of forms, tables and RelationManagers, and then easily add your custom stuff on top.
6 replies
Brainstorming ways to solve this problem
wkhtmltopdf
works flawlessly, it's available on major Linux repos, through composer, and other sources. It's a very nice midpoint between DomPDF and full out headless Chrome. The risk of breaking in the future totally worth it! 😁14 replies
Relation Manager and HasManyThrough: General error: 1 no such column on one of the models
Your relationships is wrong. You don't need hasManyThrough, you structure looks to me like a belongsToMany. Get a grip on that first... That's Laravel 101, nothing to do with Filament.
6 replies
Brainstorming ways to solve this problem
If your html/css is not too "fancy" (css3 flexbox etc) you can use Laravel Snappy https://github.com/barryvdh/laravel-snappy which uses wkhtmltopdf bin, and is WAYYYYYY faster than using headless chrome, and way more accurate than using DomPDF. The part of generating the layouts based on data, is straight forward Laravel+Blade.
14 replies
Get active relation manager table filters from custom page
For anyone having the same questions, i'll post what i ended up doing. What i wanted was to get the relation manager table filters from my custom page which they were shown. My solution was the following:
I'm using library to serialize the query builder and save it to the application cache. So in the Relation Manager table, i do the following:
And in my custom page, i have the following:
5 replies