Class: HeadersUI

HeadersUI

Class responsible for the UI in the Nested Rows' row headers.

Extends

Members

staticHeadersUI.CSS_CLASSESObject

CSS classes used in the row headers.

buildStateBoolean

Flag which determines build state of element.

collapsingUICollapsingUI

Reference to the CollapsingUI instance connected with the Nested Rows plugin.

dataManagerDataManager

Reference to the DataManager instance connected with the Nested Rows plugin.

element

Get element as a DOM object.

eventManagerEventManager

Instance of EventManager.

hotCore

Instance of Handsontable.

optionsObject

List of element options.

plugin

Reference to the main plugin instance.

rowHeaderWidthCachenull Number

Cache for the row headers width.

stateBoolean

Flag which determines build state of element.

trimRowsPluginTrimRows

Reference to the TrimRows instance connected with the Nested Rows plugin.

Methods

inherited appendTo(wrapper)

Add created UI elements to table.

Parameters:
Name Type Description
wrapper HTMLElement

Element which are parent for our UI element.

inherited build()

Method for create UI element. Only create, without append to table.

inherited destroy()

Method for remove UI element.

inherited focus()

Focus element.

inherited getOffset(){Object}

Getter for the element offset.

Returns: {Object} Object contains top and left offset of the element.

inherited getPosition(){Object}

Getter for the element position.

Returns: {Object} Object contains left and top position of the element.

inherited getSize(){Object}

Getter for the element position.

Returns: {Object} Object contains height and width of the element.

inherited getValue(){*}

Get the element value.

Returns: {*}

inherited hide()

Hide element.

inherited isAppended(){Boolean}

Check if UI element are appended.

Returns: {Boolean}

inherited isBuilt(){Boolean}

Check if UI element are built.

Returns: {Boolean}

inherited reset()

Reset to initial state.

inherited setOffset(top, left)

Setter for the element offset. Offset means marginTop and marginLeft of the element.

Parameters:
Name Type Description
top Number

New margin top of the element.

left Number

New margin left of the element.

inherited setPosition(top, left)

Setter for position.

Parameters:
Name Type Description
top Number

New top position of the element.

left Number

New left position of the element.

inherited setSize(width, height)

Setter for the element size.

Parameters:
Name Type Description
width Number

New width of the element.

height Number

New height of the element.

inherited setValue(){*}

Set the element value.

Returns: {*}

inherited show()

Show element.

inherited translateIfPossible(value){*}

Translate value if it is possible. It's checked if value belongs to namespace of translated phrases.

Parameters:
Name Type Description
value *

Value which will may be translated.

Returns: {*} Translated value if translation was possible, original value otherwise.

inherited update()

Update DOM structure.