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
optionalscrollSnap
:
boolean
optionalEnable scroll snapping (WIP, needs to update scroll-start when frozen rows/columns stick)
data
:
Array
optionalEach 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
optionalcontent to append to element. Passed to Dolla's content
Events
Fired after render finishes