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

readonly : function optional

Function called with each record to determine whether its row should render readonly cells. Forwarded to each TableRow and resolved per-record in row.renderCell before delegating to column.renderCell. Per-cell readonly overrides (e.g. ReadonlyColumn, split-cell placeholders) still win.

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