Add view() on column making. #645
llkalil
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Today i do something like this for rendering views in columns:
Column::make('is_draft') ->sortable() ->format(function ($value, $column, $row) { return view('components.test'); }),
But I think there is a better solution, something like:
Column::make('is_draft') ->sortable() ->view("VIEW NAME HERE",$view_parameter1, $view_parameter2, $view_parameter1...),
And the variables
$value, $column, $row
present in format function would be available on the desired view.Does this apply to anyone else's problem? If desired I can develop this functionality.
Beta Was this translation helpful? Give feedback.
All reactions