Email and links

Adding email or links in your javascript table.



Source code

<html>
<script src="https://jexcel.net/v5/jexcel.js"></script>
<script src="https://jexcel.net/v5/jsuites.js"></script>
<link rel="stylesheet" href="https://jexcel.net/v5/jexcel.css" type="text/css" />
<link rel="stylesheet" href="https://jexcel.net/v5/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'
        },
    ],
    license: '39130-64ebc-bd98e-26bc4',
});
</script>
</html>