SelectColumn extends DataSpreadsheetColumn
Dropdown column for DataSpreadsheet. Edits with a bound <select>
(Input.create) built from options.
Constructor
new SelectColumn(options)
options
:
Object
optionaloptions
:
Array
optionalallowed values; strings, or { value, label }
attribute
:
string
optionalrecord key this column reads/writes
editable
:
boolean
optionalwhether cells can be edited/pasted into
input
:
Object
optionalextra options merged into Input.create (e.g. dump/load)
index
:
number
optional0-based column position (assigned by the grid)
width
:
number
|
string
optionalexplicit column width (px number or CSS px string); falls back to the grid's default width when omitted
frozen
:
boolean
optionalpin this column to the left while the body scrolls
header
:
function
|
string
optionalheader content; function receives (column, grid)
render
:
function
optionalcell content renderer; receives (record, cell, column, grid)
value
:
function
optionaloptional override for the copy/serialized value; receives (record, column). Defaults to the render result.
class
:
string
optionalextra class(es) applied to header + cells
unnest
:
function
optionalexpand the record's nested collection into stacked sub-rows for this cell (SQL UNNEST/explode). A function (record) => Array returning the sub-records to stack (read-only display in v1)
splitInto
:
function
optionaldeprecated alias for unnest
Instance Properties
Extra Input.create options merged into every editor (override per type, e.g. number dump).
Input kind passed to Input.create; overflow-friendly rich text by default (mirrors Spreadsheet).
MIME types this column accepts on paste.
Instance Methods
cellAt()
A CellHandle for this column at a 0-based row index (or null).
CellHandles for this column across the whole dataset (lazy, transient).
clear()
Clear the record's value.
Resolve header content.
input()
Feed the option list to Input.create's SelectInput (as [value, label] pairs).
Parse a pasted/typed string into the stored value. Override per type.
paste()
Apply a pasted value to the record.
Resolve the display content for a record (string / node / dolla descriptor).
Resolve the copy/serialized value for a record (string).