-
<inner> copyContext(block) → {Context}
-
Creates a drag and drop context for copying.
Parameters:
Name |
Type |
Description |
block |
Element
|
|
- Source:
Returns:
-
Type
-
Context
-
<inner> handle(event) → {Event}
-
Process events on Aloha Blocks.
Parameters:
Name |
Type |
Description |
event |
Event
|
|
- Source:
Returns:
-
Type
-
Event
-
<inner> isBlockEvent(event) → {boolean}
-
Whether or not the given event is an event targeting an Aloha Block
element.
Parameters:
Name |
Type |
Description |
event |
Event
|
|
- Source:
Returns:
-
Type
-
boolean
-
<inner> moveContext(block) → {Context}
-
Creates a drag and drop context for moving.
Parameters:
Name |
Type |
Description |
block |
Element
|
|
- Source:
Returns:
-
Type
-
Context
-
<inner> read(block) → {Object}
-
Reads the given block's data.
Parameters:
Name |
Type |
Description |
block |
Element
|
|
- Source:
Returns:
-
Type
-
Object
-
<inner> write(block, data) → {Object}
-
Writes the given block's data.
Parameters:
Name |
Type |
Description |
block |
Element
|
|
data |
Object
|
|
- Source:
Returns:
-
Type
-
Object