Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set custom text/html content via the htmlLink method? #43

Open
BryceBubbles opened this issue Jun 29, 2016 · 0 comments
Open

Set custom text/html content via the htmlLink method? #43

BryceBubbles opened this issue Jun 29, 2016 · 0 comments

Comments

@BryceBubbles
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants