Tetracyclic
Tetracyclic
FFilament
Created by Tetracyclic on 5/13/2024 in #❓┊help
Stretch grid table row so that column actions sit at the bottom
22 replies
FFilament
Created by Tetracyclic on 5/13/2024 in #❓┊help
Stretch grid table row so that column actions sit at the bottom
@Zep Fietje I'll put a PR together now, but I've not had time to test it properly, it's only a small change
22 replies
FFilament
Created by Tetracyclic on 5/13/2024 in #❓┊help
Stretch grid table row so that column actions sit at the bottom
(You'll probably need to change the leading classes to target the table in question)
22 replies
FFilament
Created by Tetracyclic on 5/13/2024 in #❓┊help
Stretch grid table row so that column actions sit at the bottom
Does the following fix work for you:
.fi-panel-app .fi-dashboard-page .fi-ta-record > div {
height: 100%; align-items: stretch
}
.fi-panel-app .fi-dashboard-page .fi-ta-record > div {
height: 100%; align-items: stretch
}
22 replies
FFilament
Created by Tetracyclic on 5/13/2024 in #❓┊help
Stretch grid table row so that column actions sit at the bottom
Apologies, I never got around to it.
22 replies
FFilament
Created by Bardolf#6969 on 6/27/2024 in #❓┊help
Custom page with a wizard form
The $model property is only (I think) used on Resources. If you're creating a custom page that interacts with a single record, you need a way to bind it to a specific record, so you need to set ->model() on the form itself
7 replies
FFilament
Created by Bardolf#6969 on 6/27/2024 in #❓┊help
Custom page with a wizard form
In order to access a relationship, you need to set the related $model on the form: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#setting-a-form-model
7 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
It probably makes sense to do it from scratch, but use the existing code for inspiration, as it will be quite different doing it as a PDF, rather than as a spreadsheet of rows/columns
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
Alternatively, you'd need to create a completely custom action that triggers the process, and your own code for creating the PDF that the action calls.
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
You could try creating a custom exporter and export job and passing them to the ExportAction: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#customizing-the-export-job
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
Would the bulk action generate a single PDF with multiple users in it, or multiple PDFs, one for each user?
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
Ah yeah, if it's just for a single user it can probably be done within the request, or just a single job.
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
The built-in Export action splits the export into multiple jobs, each handling a maximum number of records (chunk), to reduce overall memory usage. However this would be tricky to do with a PDF, where you need all the data at once when you generate it.
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
You don't have to dispatch a job, you could handle it within the request, but depending on the amount of data and the complexity of the PDF, it could take a while to complete, so dispatching a job makes sense.
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
And use something like laravel-pdf to generate the PDF
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
You could use the code for the main Export action as a starting point for handling the (though you probably won't need a lot of it): https://github.com/filamentphp/filament/tree/3.x/packages/actions/src/Exports
18 replies
FFilament
Created by ocram82 on 6/26/2024 in #❓┊help
Export pdf with custom layout
You'd need to make a custom action for this.
18 replies
FFilament
Created by kwatman on 6/26/2024 in #❓┊help
Exporting a sorted sum column with ExportAction
13 replies
FFilament
Created by kwatman on 6/26/2024 in #❓┊help
Exporting a sorted sum column with ExportAction
It's definitely worth opening an issue about this, as the framework should take care of it, I imagine it's just an oversight.
13 replies
FFilament
Created by kwatman on 6/26/2024 in #❓┊help
Exporting a sorted sum column with ExportAction
13 replies