<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingGrid Demo</title>
<script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
<style>
zing-grid[loading] {
height: 601px;
}
</style>
</head>
<body>
<h3>`Element` wraps cell content to tag specified by [typeElementTagName] with attribute from [typeElementAttributeName].</h3>
<h3>The 'element' column type wraps cell content in tag (specified by [typeElementTagName]) with attribute (specified from [typeElementAttributeName]) and uses
input `type="string"` as editor. Double-click cell to edit cell.</h3>
<zing-grid editor>
<zg-colgroup>
<zg-column index="name" type="element" type-element-tag-name="h1"></zg-column>
<zg-column index="last" type="element" type-element-tag-name="zing-grid" type-element-attribute-name="caption" width="400px"></zg-column>
<zg-column index="age"></zg-column>
</zg-colgroup>
<zg-data data='[{"name": "Maria","last": "John", "age": 5}, {"name": "Juanita","last": "Smith", "age": 36}, {"name": "Felicity","last": "Snow", "age": 44}]'></zg-data>
</zing-grid>
<script>
ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingGrid Demo</title>
<script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
</head>
<body>
<h3>`Element` wraps cell content to tag specified by [typeElementTagName] with attribute from [typeElementAttributeName].</h3>
<h3>The 'element' column type wraps cell content in tag (specified by [typeElementTagName]) with attribute (specified from [typeElementAttributeName]) and uses
input `type="string"` as editor. Double-click cell to edit cell.</h3>
<zing-grid editor>
<zg-colgroup>
<zg-column index="name" type="element" type-element-tag-name="h1"></zg-column>
<zg-column index="last" type="element" type-element-tag-name="zing-grid" type-element-attribute-name="caption" width="400px"></zg-column>
<zg-column index="age"></zg-column>
</zg-colgroup>
<zg-data data='[{"name": "Maria","last": "John", "age": 5}, {"name": "Juanita","last": "Smith", "age": 36}, {"name": "Felicity","last": "Snow", "age": 44}]'></zg-data>
</zing-grid>
</body>
</html>