new Indicator(optionsopt)
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
options.connected |
Boolean |
<optional> |
Sink and source represented by this indicator are connected. |
options.connectable |
Boolean |
<optional> |
Sink and source represented by this indicator can be connected, no restrictions. |
options.sourceisgroup |
Boolean |
<optional> |
The source is a group header. |
options.sinkisgroup |
Boolean |
<optional> |
The sink is a group header. |
options.isgroup |
Boolean |
<optional> |
Either source or sink is a group header. |
Indicator is a button element inside the Indicators widget for the Matrix. All properties are reflected as class onto the element.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
Object |
<optional> |
{ }
|
An object containing initial options. |
Extends
Members
element :HTMLDivElement
- Source:
- Inherited From:
The main DIV element.
Has class .aux-button
.
Type:
- HTMLDivElement
icon :Icon
- Source:
- Inherited From:
The Icon widget.
Type:
label :Label
- Source:
- Inherited From:
The Label of the button.
Type:
Events
clicked
- Source:
- Inherited From:
Is fired if a delay is set, after the pointer is released and the timeout hasn't finished yet. Doesn't fire after the timeout finished.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | Either the MouseEvent or the TouchEvent. |
press_cancel
- Source:
- Inherited From:
Is fired after press_start
or press_delay
and before
a press_end
was fired while the pointer is dragged outside of the
button element.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | Either the MouseEvent or the TouchEvent. |
press_delayed
- Source:
- Inherited From:
Is fired after either a mousedown or a touchstart happened
but delay
is set so firing press_start
will be delayed.
press_end
- Source:
- Inherited From:
Is fired after either a mouseup or a touchend happened and the
pointer didn't leave the button element after press_start
or
press_delayed
was fired.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | Either the MouseEvent or the TouchEvent. |
press_start
- Source:
- Inherited From:
Is fired after either a mousedown or a touchstart happened and
delay
is set to 0
. If a delay is set, press_delayed
is fired
instead on mousedown/touchstart and this event gets fired as soon
as the delay time is over.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | Either the MouseEvent or the TouchEvent. |
pressed
- Source:
- Inherited From:
Is fired if delay
is set and the timeout has finished.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | Either the MouseEvent or the TouchEvent. |