->description() - is it possible to further style?
Table columns and using the ->description() method (correct term?) for example like this
Is it possible to apply styling to the description (such as
badge
and setting a colour)? I don't think that description()
supports this natively and am sure that there is a method to further style using some kind of custom code but wouldn't know where to start on this. Any pointers?
thx
j4 Replies
You probably can use
->description(new HtmlString('your_html'))
and return some HTMLThanks I'll take a look at that approach.
Dennis Koch already mentioned
new HtmlString
. As an alternative you can also use your own view where you can use blade components, etc.
That might be even cleaner.