Email and links
Adding email or links in your javascript data grids.
<html>
<script src="https://jspreadsheet.com/v5/jspreadsheet.js"></script>
<script src="https://jsuites.net/v5/jsuites.js"></script>
<link rel="stylesheet" href="https://jspreadsheet.com/v5/jspreadsheet.css" type="text/css" />
<link rel="stylesheet" href="https://jsuites.net/v5/jsuites.css" type="text/css" />
<div id="spreadsheet"></div>
<script>
let data = [
[ '1', 'richard@gmail.com', 'https://bossanova.uk/Jspreadsheet' ],
[ '2', 'sergiomartins@gmail.com', 'https://google.com' ],
];
jspreadsheet(document.getElementById('spreadsheet'), {
data: data,
columns: [
{
type: 'dropdown',
width: '140px',
title: 'Name',
source: [
{
id:'1',
name: 'Richard'
},
{
id:'2',
name: 'Sergio Martins'
}
]
},
{
type: 'email',
width: '250px',
title: 'Email'
},
{
type: 'url',
width: '250px',
title: 'Url'
},
],
license: '39130-64ebc-bd98e-26bc4',
});
</script>
</html>