|
|
|
boxConstrainedMover(
box
: Object
within
: Boolean
) :
void
a specialization of dojo.dnd.constrainedMover, which constrains to the specified box
Parameter |
Type |
Usage |
Description |
box |
Object |
required |
a constraint box (l, t, w, h) |
within |
Boolean |
required |
if true, constraints the whole dragged object withtin the rectangle,
otherwise the constraint is applied to the left-top corner |
|
|
|
|
constrainedMover(
fun
: Function
within
: Boolean
) :
void
returns a constrained version of dojo.dnd.Mover
this function produces n object, which will put a constraint on
the margin box of dragged object in absolute coordinates
Parameter |
Type |
Usage |
Description |
fun |
Function |
required |
called on drag, and returns a constraint box |
within |
Boolean |
required |
if true, constraints the whole dragged object withtin the rectangle,
otherwise the constraint is applied to the left-top corner |
|
|
|
|
constraints(
) :
void
|
|
|
|
parentConstrainedMover(
area
: String
within
: Boolean
) :
void
a specialization of dojo.dnd.constrainedMover, which constrains to the parent node
Parameter |
Type |
Usage |
Description |
area |
String |
required |
"margin" to constrain within the parent's margin box, "border" for the border box,
"padding" for the padding box, and "content" for the content box; "content" is the default value. |
within |
Boolean |
required |
if true, constraints the whole dragged object within the rectangle,
otherwise the constraint is applied to the left-top corner |
|