Skip to content

Bootstrap 5 adding badges to text within cell #1260

Closed Answered by lrljoe
r-evans18 asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, you can call format() on the column, and pass the value into the view:

Column::make('Name')
    ->format(
        fn($value, $row, Column $column) => view('my.custom.view')->withValue($value)
    ),

Replies: 1 comment 1 reply

Comment options

lrljoe
Jul 1, 2023
Collaborator Sponsor

You must be logged in to vote
1 reply
@r-evans18
Comment options

Answer selected by r-evans18
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