Skip to content
Discussion options

You must be logged in to vote

For those interested, @luanfreitasdev mentioned using blade render with a component for something else, and it appears to be working for this too

public function addColumns(): PowerGridColumns
{
       return PowerGrid::columns()
              ...
            ->addColumn('master_occurrence', function ($model) {
                return Blade::render(
                    '<x-occurrence-select url="'.route('master-survey.update', ['master_id' => $model->master_survey_id]).'" type="occurrence" selected="'.$model->master_occurrence.'"></x-occurrence-select>'
                );
            });

}
@props(['selected'])
<div>
    <select>
            @foreach ($options as $option)
                <o…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by quentindecosne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant