Class SS.control.moveable
Moveable. Makes elements moveable within a page.
Defined in: SS.control.moveable.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
|
Allows any type of control to be made moveable whereas by default,
input control such as textboxes are not moveable.
|
|
|
Holds the elements original style
|
|
|
CSS cursor style to use when the mouse pointer is moving the moveable element.
|
|
|
CSS cursor style to use when the mouse pointer is over the moveable element.
|
|
|
Detach the element from its parent and attach it to the
document body during movement.
|
|
|
Direction the moveable control can be moved in.
|
|
|
Identifier of the moveable control.
|
|
|
Number of milliseconds the mouse pointer has to be moving before the object moves
|
|
|
Flag to indicate if the div is in a moving state.
|
|
|
Function called or evaluated {String} whenever the mouse button is pressed.
|
|
|
Function called or evaluated {String} whenever the object is moving.
|
|
|
Function called or evaluated {String} whenever the mouse button is released.
|
|
|
Moving event reference.
|
|
|
Moving event reference.
|
|
|
Moving event reference.
|
|
|
ScrollY.
|
| Method Attributes | Method Name and Description |
|---|---|
|
MouseDown(e, l, es)
Handles the mouse down event attached to the moveable element.
|
|
|
MouseMove(e)
Handles the mouse move event attached to the moveable element when it is being dragged around (in a moving state).
|
|
|
MouseUp(e, l)
Handles the mouse up event attached to the moveable element.
|
|
|
render()
Renders an element as being moveable on the page.
|
|
|
Scroll()
Stores the current document scroll positions.
|
Field Detail
<private>
_b
Next sibling node of the moveable element
<private>
_d
Move delay id
- Since:
- v1.0.8.20090930
<private>
_m
Moving event reference.
<private>
_p
Original parent node of the moveable element
<private>
_s
Scroll event reference.
<private>
_u
Mouse up event reference.
anytype
Allows any type of control to be made moveable whereas by default,
input control such as textboxes are not moveable. Default = false.
- Since:
- v1.0.7.20090731
cssText
Holds the elements original style
cursor_move
CSS cursor style to use when the mouse pointer is moving the moveable element.
cursor_over
CSS cursor style to use when the mouse pointer is over the moveable element.
detach
Detach the element from its parent and attach it to the
document body during movement. Default = false;
- Since:
- v1.0.7.20090731
direction
Direction the moveable control can be moved in. Values = ["xy","x","y"]. Default = "xy".
id
Identifier of the moveable control.
movedelay
Number of milliseconds the mouse pointer has to be moving before the object moves
- Since:
- v1.0.8.20090930
moving
Flag to indicate if the div is in a moving state. Default = false.
onmousedown
Function called or evaluated {String} whenever the mouse button is pressed.
onmousemove
Function called or evaluated {String} whenever the object is moving.
onmouseup
Function called or evaluated {String} whenever the mouse button is released.
oX
Moving event reference.
oY
Moving event reference.
sX
Moving event reference.
sY
ScrollY.
Method Detail
MouseDown(e, l, es)
Handles the mouse down event attached to the moveable element.
- Parameters:
- {Event} e
- Event
- {HTMLElement} l
- Moveable element.
- {Boolean} es
- Exclude Scroll. Default = false.
- Returns:
- null
MouseMove(e)
Handles the mouse move event attached to the moveable element when it is being dragged around (in a moving state).
- Parameters:
- {Event} e
- Event
- Returns:
- null
MouseUp(e, l)
Handles the mouse up event attached to the moveable element.
- Parameters:
- {Event} e
- Event
- {HTMLElement} l
- Moveable element.
- Returns:
- null
render()
Renders an element as being moveable on the page.
- Returns:
- null
Scroll()
Stores the current document scroll positions.
- Returns:
- null
