Page 1 of 1

[SOLVED] Make a Tile a Link?

Posted: Wed Nov 28, 2018 3:19 pm
by shnar
I have a need that to make a Tile a link to another page. I added some javascript code on the onclick event to navigate to the page and that works fine, but it's not acceptable to the client since they want to "right-click, open-in-new-tab". I tried adding an <a> tag surrounding the <div data-role="tile"> tag, but that caused all sorts of problems (tiles were laying on top of tiles). I tried adding the <a> tag as the first child of the tile div, and this gave me half the desired effect. All the content (text and images) of the tile was a link, but the "whitespace" of the tile was not. So the links only worked if they right-clicked on the text, as opposed to any area of the tile.

Is there a way to make the entire tile a link?

-shnar

Re: Make a Tile a Link?

Posted: Wed Nov 28, 2018 4:20 pm
by olton

Code: Select all

<a href="..." data-role="tile">...</a>

Re: Make a Tile a Link?

Posted: Thu Nov 29, 2018 7:26 pm
by shnar
Worked great, thanks.

-shnar