Rendering Orchid Icon from TD #2287
Answered
by
tabuna
Rfferrao87
asked this question in
Q&A
-
I've been trying to use the Here's a minimal example of what I'm trying to do in the
|
Beta Was this translation helpful? Give feedback.
Answered by
tabuna
Jun 27, 2022
Replies: 1 comment
-
This will only output the text as TD::make('active', __('Active'))
->render(function () {
return view('template');
}) or use shorthand which will compile use Illuminate\Support\Facades\Blade;
TD::make('active', __('Active'))
->render(function () {
return Blade::render('<x-orchid-icon path="check" />');
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rfferrao87
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will only output the text as
HTML
. If you want to pass aBlade
you can do it like aview()
example:or use shorthand which will compile
Blade
syntax toHTML
: