You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wanting to pass custom html in as the link content when using the htmlLink() template method.
I know I could handle the link manually in the template, but it seems like a waste when the htmlLink method is set up to handle all the possible link types already.
From looking at the LinkModel it seems this isn't currently possible, but I may be missing something.
So yeah it would be nice to be able to set the "customText" value when accessing it via the template. Passing it as an "attributes" value seems like the simplest option to me, but perhaps that's not the most logical and maybe another public method for setting it would be better?
I'll probably hack a solution into the LinkModel for my current project, unless you have a simple solution that I'm missing?
Thanks
The text was updated successfully, but these errors were encountered:
I'm wanting to pass custom html in as the link content when using the htmlLink() template method.
I know I could handle the link manually in the template, but it seems like a waste when the htmlLink method is set up to handle all the possible link types already.
From looking at the LinkModel it seems this isn't currently possible, but I may be missing something.
So yeah it would be nice to be able to set the "customText" value when accessing it via the template. Passing it as an "attributes" value seems like the simplest option to me, but perhaps that's not the most logical and maybe another public method for setting it would be better?
I'll probably hack a solution into the LinkModel for my current project, unless you have a simple solution that I'm missing?
Thanks
The text was updated successfully, but these errors were encountered: