How to render a table builder in a public route, but append and prepend a bunch of other information
edster - 7 months ago
What is the best way to do this? Should I be using $table->render
and configure a setting I am unaware of to customize the whole surrounding views?
Or should I create a view that would load up the table where I want it with twig like you can do with a form?
If that is the better way, how would I do that?
Thanks!
Answer
ryanthompson - 6 months ago
Simlar to the form builder - after the make
stage you can get the content out of it. So if you have $table->make(); in your controller - just pass it along to the view and get the content out:
{{ table.table_content|raw }}
There is no table() function which wouldn't be a bad idea. Ima make an issue for it.
ryanthompson - 6 months ago
Simlar to the form builder - after the make
stage you can get the content out of it. So if you have $table->make(); in your controller - just pass it along to the view and get the content out:
{{ table.table_content|raw }}
There is no table() function which wouldn't be a bad idea. Ima make an issue for it.