Products

Back to Examples

Progressbar

A example using the progressbar data grid column type.

<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', 'Write a letter', '100' ],
    [ '2', 'Review CV', '60' ],
    [ '3', 'Buy ticket', '5' ],
];

jspreadsheet(document.getElementById('spreadsheet'), {
    data: data,
    columns: [
        { type: 'text', title: 'Id' },
        { type: 'text', width: '250px', title: 'Activity' },
        { type: 'progressbar', width: '250px', title: 'Progress' },
     ],
     license: '39130-64ebc-bd98e-26bc4',
});
</script>
</html>