Make it so the screen name can be html (\Illuminate\Support\HtmlString) #2754
BrianWendt
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was hoping to make my header something like
"<b>Edit</b>: {$name}"
and ran into the fact thatOrchid\Screen\Screen::name()
sets both the <title> tag and the header title section value.The most direct solution would be to open up
name()
too allow\Illuminate\Support\HtmlString
and then strip tags where app.blade.php yields the title section. However, this lacks flexibility.Tinkering around in the platform, I think we should break out the <title> tag and the header title. I think it could be broken into two methods,
title()
andname()
A few resources would need to be updated (base.blade.php and dashboard.blade.php) to yield the $name instead.
Beta Was this translation helpful? Give feedback.
All reactions