Table

new Table()

Create a new Table using D3.

Classes

Table

Members

domElement :HTMLElement

Type:
  • HTMLElement

filterSelect :HTMLElement

Type:
  • HTMLElement

noResultDiv :HTMLElement

Type:
  • HTMLElement

Methods

clearTable()

Clear table.

dataAsTable(data, columns)

Format and update the data in the table with data.

Parameters:
NameTypeDescription
dataobject

The data to render.

columnsArray

The columns to render.

initHtml()

Initialize the html of the view

(static) update(table, event)

Update the table with new data.

Parameters:
NameTypeDescription
tableTable

The table object to update.

eventEvent

The event passed to the update function.