Spreadsheet extends Table

A Table with editable cells

Example

JS
new Spreadsheet({
    data: [{
        name: "Corey Seager",
        team: "Texas Rangers",
        ops: 1.023
    }],
    columns: [{
        attribute: 'name',
        header: 'Name'
    }, {
        attribute: 'team',
        header: 'Team',
    }]
})

Constructor

new Spreadsheet(options)
options : Object optional
scrollSnap : boolean optional

Enable scroll snapping (WIP, needs to update scroll-start when frozen rows/columns stick)

columns : Array optional

Array of objects that initialize Columns that manage the rendering of Cells

data : Array optional

Each record of the array generates a row by passing the record to each render method of the defined columns. Uses forEach on object, so can use with any Enumerable-ish object.

content : string | HTMLElement | Array | Object optional

content to append to element. Passed to Dolla's content

Events

Fired after render finishes