1.0.1 • Published 1 year ago

onlinesheet v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Installation

% npm install onlinesheet

Basic demo

You should initiate your table based on a div container, such as:

<div id="mysheet"></div>

To initialize a onlinesheet CE table you should run a JavaScript, such as:

var data = [
    ['Jazz', 'Honda', '2019-02-12', '', true, '$ 2.000,00', '#777700'],
    ['Civic', 'Honda', '2018-07-11', '', true, '$ 4.000,01', '#007777'],
];

jspreadsheet(document.getElementById('mysheet'), {
    data:data,
    columns: [
        { type: 'text', title:'Car', width:120 },
        { type: 'dropdown', title:'Make', width:200, source:[ "Alfa Romeo", "Audi", "Bmw" ] },
        { type: 'calendar', title:'Available', width:200 },
        { type: 'image', title:'Photo', width:120 },
        { type: 'checkbox', title:'Stock', width:80 },
        { type: 'numeric', title:'Price', width:100, mask:'$ #.##,00', decimal:',' },
        { type: 'color', width:100, render:'square', }
     ]
});
1.0.1

1 year ago

1.0.0

1 year ago