Methods
(inner) addDiscRow(disc, albumId, albumName, colspan) → {HTMLElement}
    Adds a row with discnumber to the table
    Parameters:
| Name | Type | Description | 
|---|---|---|
| disc | number | discnumber | 
| albumId | string | the albumid | 
| albumName | string | the album name | 
| colspan | number | column count | 
- Source:
Returns:
    the created row
- Type
- HTMLElement
(inner) addTblFooter(tfoot, content) → {void}
    Updates the table footer
    Parameters:
| Name | Type | Description | 
|---|---|---|
| tfoot | Element | Element to insert the footer row | 
| content | Element | Dom node to insert | 
- Source:
Returns:
- Type
- void
(inner) addWorkRow(work, albumId, albumName, colspan) → {HTMLElement}
    Adds a row with the work to the table.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| work | string | The work name | 
| albumId | string | the albumid | 
| albumName | string | the album name | 
| colspan | number | column count | 
- Source:
Returns:
    the created row
- Type
- HTMLElement
(inner) dragAndDropTable(tableId) → {void}
    Initializes a table body for drag and drop of rows
    Parameters:
| Name | Type | Description | 
|---|---|---|
| tableId | string | table id | 
- Source:
Returns:
- Type
- void
(inner) getHeaderName(header) → {string}
    Return the displayname of a header
    Parameters:
| Name | Type | Description | 
|---|---|---|
| header | string | Header fieldname | 
- Source:
Returns:
    Header displayname
- Type
- string
(inner) replaceTblRow(mode, row, el) → {void}
    Replaces a table row and tries to keep the selection state
    Parameters:
| Name | Type | Description | 
|---|---|---|
| mode | boolean | the selection mode | 
| row | HTMLElement | row to replace | 
| el | HTMLElement | replacement row | 
- Source:
Returns:
- Type
- void
(inner) setCols(tableName) → {void}
    Sets the table header columns
    Parameters:
| Name | Type | Description | 
|---|---|---|
| tableName | string | table name | 
- Source:
Returns:
- Type
- void
(inner) showWorkRow(view) → {boolean}
    Determines whether works shoud be shown for the current view.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| view | string | table name | 
- Source:
Returns:
    true if work row should be shown, else false
- Type
- boolean
(inner) tableRow(row, data, list, colspan, smallWidth, actionTd) → {void}
    Creates the columns in the row
    Parameters:
| Name | Type | Description | 
|---|---|---|
| row | HTMLElement | the row to populate | 
| data | object | data to populate | 
| list | string | table name | 
| colspan | number | number of columns | 
| smallWidth | boolean | true = print data in rows, false = print data in columns | 
| actionTd | Element | action table cell element | 
- Source:
Returns:
- Type
- void
(inner) uiSmallWidthTagRows() → {boolean}
    Checks if we should display data in rows or cols
- Source:
Returns:
    true if window is small and the uiSmallWidthTagRows settings is true, else false
- Type
- boolean
(inner) updateTable(obj, list, perRowCallbackopt, createRowCellsCallbackopt) → {void}
    Updates the table from the jsonrpc response
    Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| obj | object | jsonrpc response | |
| list | string | table name to populate | |
| perRowCallback | function | <optional> | callback per row | 
| createRowCellsCallback | function | <optional> | callback to create the row | 
- Source:
Returns:
- Type
- void