Class

Section

Section(id, settings)

This class contains a set of widgets that will be displayed in a tab and the methods to operate on this section.

Constructor

# new Section(id, settings)

Parameters:
Name Type Description
id string

Id of the section.

settings Object

Settings for the tab.

hidden boolean

Show or hide the section. Default false.

View Source Section.js, line 9

Methods

# addWidget(widget)

Add widget to section.

Parameters:
Name Type Description
widget Object

Widget to add.

View Source Section.js, line 104

# areAllWidgetsCollapsed()

Check if all widgets in section are collapsed.

View Source Section.js, line 94

# collapse()

Collapse section.

View Source Section.js, line 76

# expand()

Expand section.

View Source Section.js, line 85

# hide()

Hide the entire section.

View Source Section.js, line 133

# init()

Init the tab. Used on the initialize App process.

View Source Section.js, line 33

# isHidden() → {boolean}

Check if the section is hidden.

View Source Section.js, line 126

boolean

# refresh(forceRefresh)

Refresh all the widgets in the section.

Parameters:
Name Type Default Description
forceRefresh boolean false

True force the refresh.

View Source Section.js, line 141

# show()

Show section.

View Source Section.js, line 112

# toggle()

Toggle section.

View Source Section.js, line 61