Class: Divider

Divider(parentDiv)

Horizontal rule used to divide sections.

Constructor

new Divider(parentDiv)

Creates a new Divider instance.

Parameters:
Name Type Description
parentDiv p5.Element

The parent element to attach the divider to.

Source:

Extends

Methods

hide()

Hides this field by setting its display to 'none'.

Overrides:
Source:

isHidden() → {boolean}

Checks if this field is currently hidden.

Overrides:
Source:
Returns:

True if the field is hidden, false otherwise.

Type
boolean

setText(text)

Sets the text content of this field.

Parameters:
Name Type Description
text string

The new text content for the field.

Overrides:
Source:

setTooltip(tooltip)

Sets the tooltip text for this field.

Parameters:
Name Type Description
tooltip string

The tooltip text to set.

Overrides:
Source:

show()

Shows this field by setting its display to '' (default).

Overrides:
Source: