Skip to content

Modal for listing #2756

Answered by macit-emre
Davka asked this question in Q&A
Discussion options

You must be logged in to vote

yes you can. i use also.
in your layout function in screen you may use something like that. (and also a button is needed to trigger modal with ModalToggle)

return [
    Layout::table('blablas',$columns),
    Layout::modal('asyncBlabla', new BlablaModalLayout('blablaResponse',[
                Sight::make('')->render(function ($data){
                    if(!$data){
                        return '';
                    }
                    return view('blabla.someTemplate', ['data' => $data]);
                }),
            ]))->withoutApplyButton()->async('asyncBlabla'),
]

Replies: 1 comment

Comment options

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