Hyperlink Titles & Events Suggestion
Posted: March 25th, 2022, 4:59 pm
Working with the hyperlink controls, I've encountered some complications.
I noticed that labels and inputs generate as multiple elements while hyperlinks only generate as a single <a> tag.
Label Example
Suggestion
Could hyperlinks be made to generate the same way? This would allow titles to be added as well as allow events to be decoupled from the href thus granting more individual control over the 2 features.
- I have a link amid several label controls, but I can't easily get it to match as the labels all have titles defined.
- That link is for opening a modal window and not actually for navigation, but the href cannot be removed and is causing odd behavior. Any attempts to disable the href either doesn't work or also disables the onclick that the event is mapped to.
I noticed that labels and inputs generate as multiple elements while hyperlinks only generate as a single <a> tag.
Label Example
Code: Select all
<div control-type="label" onclick="Event()">
<div control-title="">Title Content</div>
<span>Text Content</span>
</div>
Could hyperlinks be made to generate the same way? This would allow titles to be added as well as allow events to be decoupled from the href thus granting more individual control over the 2 features.
Code: Select all
<div control-type="hyperlink" onclick="Event()">
<div control-title="">Title Content</div>
<a href="">Text Content</a>
</div>