<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<h2>How to add hyperlinks to cells</h2>
<p>In this example, we've added hyperlinks to all countries in the report.</p>
<p>
To insert a link into a cell, we use the
<a href="https://www.flexmonster.com/api/customizecell/" target="_blank"
>customizeCell()</a
>
method. It wraps each country name with a link that points to the respective
Wikipedia page (lines 31-47 in the JavaScript box).
</p>
<p>
Besides plain text, cells can also contain icons and other HTML elements. On
lines 37-42, you can see how such cases are handled.
</p>
<p>
<a href="https://www.flexmonster.com/doc/customizing-grid/" target="_blank"
>Visit our docs to learn more about customizing the grid</a
>.
</p>
</div>
<button onclick="clearCustomizing()">Clear Customizing</button>
<button onclick="startCustomizing()">Start Customizing</button>
<div id="pivot-container"></div>