Embed email or links

The following example shows how to create a javascript spreadsheet instance with a design similar to datatables jquery plugin.



Source code

<html>
<script src="https://jexcel.net/v4/jexcel.js"></script>
<script src="https://jexcel.net/v4/jsuites.js"></script>
<link rel="stylesheet" href="https://jexcel.net/v4/jexcel.css" type="text/css" />
<link rel="stylesheet" href="https://jexcel.net/v4/jsuites.css" type="text/css" />


<div id="spreadsheet"></div>

<script>
var data = [
    [ '1', 'paulhodel@gmail.com', 'https://bossanova.uk/jexcel' ],
    [ '2', 'sergiomartins@gmail.com', 'https://google.com' ],
];

jexcel(document.getElementById('spreadsheet'), {
    data: data,
    columns: [
        { type: 'dropdown', width: '140px', title: 'Name', source: [ { id:'1', name: 'Paul Hodel'}, { id:'2', name: 'Sergio Martins' }] },
        { type: 'email', width: '250px', title: 'Email' },
        { type: 'url', width: '250px', title: 'Url' },
     ],
});
<script>

</script>
</html>