TableView

Parameters:
Name Type Description
instance Hanstontable

Instance of Handsontable

Members

TBODYHTMLTableSectionElement

Main element.

THEADHTMLTableSectionElement

Main element.

wtWalkontable

Main Walkontable instance.

Methods

getCellAtCoords(coords, topmost){HTMLTableCellElement|null}

Returns td object given coordinates

Parameters:
Name Type Description
coords CellCoords
topmost Boolean
Returns: {HTMLTableCellElement|null}

getLastSize()

Returns cached dimensions.

render()

Renders WalkontableUI.

scrollViewport(coords, snapToTop, snapToRight, snapToBottom, snapToLeft){Boolean}

Scroll viewport to a cell.

Parameters:
Name Type Description
coords CellCoords
snapToTop Boolean optional
snapToRight Boolean optional
snapToBottom Boolean optional
snapToLeft Boolean optional
Returns: {Boolean}

scrollViewportHorizontally(column, snapToLeft, snapToRight){Boolean}

Scroll viewport to a column.

Parameters:
Name Type Description
column Number

Visual column index.

snapToLeft Boolean optional
snapToRight Boolean optional
Returns: {Boolean}

scrollViewportVertically(row, snapToTop, snapToBottom){Boolean}

Scroll viewport to a row.

Parameters:
Name Type Description
row Number

Visual row index.

snapToTop Boolean optional
snapToBottom Boolean optional
Returns: {Boolean}

setLastSize()

Sets new dimensions of the container.

updateCellHeader(element, index, content)

Updates header cell content.

Parameters:
Name Type Description
element HTMLElement

Element to update

index Number

Row index or column index

content function

Function which should be returns content for this cell

Since: 0.15.0-beta4
Class: TableView