CollapseButton:
Filter:
Classes (extension) | GUI > Views | Libraries > jostMlib

CollapseButton
ExtensionExtension

A button for the CollapseView
Location: NOT INSTALLED!
NOTE: Not meant for direct instantiation, unless you know what you are doing. Using CollapseView is recommended.

However if you do use CollapseButton, you can instantly convert a FlowView into a CollapseView, but you must watch out for the warnings below.

NOTE THE DOUBLE LAYER OF FLOW VIEWS!

Class Methods

.clickModifier

default 524288 ("option" key on macos)

.new

Inherited class methods

Instance Methods

.value

the button value

.parent

.minHeight

The collapsed height. the default is CollapseView.defaultMinHeight (25).

.offset

.valueAction

set 1 or zero to collaps or expand the view

.color

.eq

boolean. default false. Use equilateral triangle

.scale

scale the triangle in the button rect. default=0.5;

Inherited instance methods

Examples