zwz
1
It is common to have some licence link in a checkbox which must be agreed during registration.
I tried both ionCheckbox and the following, but both failed as the link is not clickable at all. How should I get it?
<label class="item item-checkbox item-checkbox-right">
<span class="input-label">agree</span>
<a href="#/licence.html">the licence</a>
<label class="checkbox">
<input type="checkbox" ng-model="agree">
</label>
</label>
1 Like
zwz
2
Inspired by mhartington,
I figure out I should replace the outer label element with div.
And then the link is clickable.
However, the link shows in a new line…
zwz
4
It seems the link is not clickable
derp, thats why we weren’t using labels… hold on
You could just do this.
<span>agree <a href="#/licence.html">the licence</a></span>
zwz
7
Then it is not clickable again.
You could do this.
This solution works for both the directive and the pure html.
zwz
10
Thank you, @mhartington. It works.
It will be great If the checkbox span is also clickable.
Anyway, it works
This seems to be broken in beta 11. Any other suggestions?
zwz
12
@mhartington The link is not clickable again with ionic nightly.
This solution doesn’t work in beta 14 ? Can help?
This will work as long as you don’t use the directive
3 Likes
Actually I am using the directive…
Thank you for help! I will try~
thanks! you helped me out a lot
How I can achieve that with ionic 4? Thanks!