Methods
(inner) addActionLinks(container, userData) → {void}
Appends action links as child nodes by app.id
Parameters:
Name | Type | Description |
---|---|---|
container |
Element | container to append the action links as child nodes |
userData |
* | custom user data |
Returns:
- Type
- void
(inner) createFieldItem(field) → {HTMLElement}
Creates the list element for fields
Parameters:
Name | Type | Description |
---|---|---|
field |
string | field name |
Returns:
li element
- Type
- HTMLElement
(inner) dragAndDropFieldList(list) → {void}
Initializes a list-group for drag and drop of list-items
Parameters:
Name | Type | Description |
---|---|---|
list |
object | list to enable drag and drop |
Returns:
- Type
- void
(inner) dragFieldList(list) → {void}
Initializes a list-group for drag of list-items
Parameters:
Name | Type | Description |
---|---|---|
list |
object | list to enable drag and drop |
Returns:
- Type
- void
(inner) fieldClick(event) → {void}
Handles click events for fields
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | click event |
Returns:
- Type
- void
(inner) filterFields(tableName) → {void}
Filters the selected fields by available fields
Parameters:
Name | Type | Description |
---|---|---|
tableName |
string | the table name |
Returns:
- Type
- void
(inner) getActionLinks(userData) → {Array}
Return an array of pre-generated action links
Parameters:
Name | Type | Description |
---|---|---|
userData |
* | custom user data |
Returns:
array of dom nodes
- Type
- Array
(inner) handleViewActionClick(event) → {void}
Handles the click on the actions column
Parameters:
Name | Type | Description |
---|---|---|
event |
MouseEvent | click event |
Returns:
- Type
- void
(inner) saveView(viewName) → {void}
Saves the fields for views
Parameters:
Name | Type | Description |
---|---|---|
viewName |
string | table name |
Returns:
- Type
- void
(inner) setEntryData(entry, data) → {void}
Sets the data from the jsonrpc object to the dom node and
updates the jsonrpc object
Parameters:
Name | Type | Description |
---|---|---|
entry |
Element | Dom node representing the entry |
data |
object | Object data from jsonrpc response |
Returns:
- Type
- void
(inner) setFields(tableName) → {object}
Sets the available fields
Parameters:
Name | Type | Description |
---|---|---|
tableName |
string | table name |
Returns:
array of available columns
- Type
- object
(inner) setFieldsStickers(tags, stickers) → {void}
Adds the sticker names to the fields array for songs
Parameters:
Name | Type | Description |
---|---|---|
tags |
Array | fields array to populate |
stickers |
Array | stickers array to add |
Returns:
- Type
- void
(inner) setView(viewName) → {void}
Insert the view container
Parameters:
Name | Type | Description |
---|---|---|
viewName |
string | table name |
Returns:
- Type
- void
(inner) setViewOptions(tableName, menu) → {void}
Creates the view settings offcanvas body
Parameters:
Name | Type | Description |
---|---|---|
tableName |
string | table name |
menu |
HTMLElement | element to populate |
Returns:
- Type
- void
(inner) viewClickHandler(event) → {void}
Central click handler for views
Parameters:
Name | Type | Description |
---|---|---|
event |
MouseEvent | click event |
Returns:
- Type
- void
(inner) viewRightClickHandler(event) → {void}
Central right click handler for views
Parameters:
Name | Type | Description |
---|---|---|
event |
MouseEvent | click event |
Returns:
- Type
- void