new Node( [ parent ], $el )

Description

Root abstract object

Parameters
Name Type Attributes Description
parent Node <optional>
$el jQuery
Details

Members


<readonly> $el :jQuery

Details
jQuery

data :object

Details
object

error :string

Details
string

<readonly> flags :object

Details
object

<readonly> id :string

Details
string

<readonly> level :int

Details
int

<readonly> model :Model

Details

<readonly> parent :Group

Details

Methods


drop()

Description

Deletes self

Fires
Details

getPos() → {int}

Description

Returns the node position inside its parent

Returns
Details

isRoot() → {boolean}

Description

Checks if this Node is the root

Returns
Details

move( target, index )

Description

Moves itself at specific position of Group

Parameters
Name Type Description
target Group
index int
Fires
Details

moveAfter( target )

Description

Moves itself after another Node

Parameters
Name Type Description
target Node
Fires
Details

moveAtBegin( [ target ] )

Description

Moves itself at the beginning of parent or another Group

Parameters
Name Type Attributes Description
target Group <optional>
Fires
Details

moveAtEnd( [ target ] )

Description

Moves itself at the end of parent or another Group

Parameters
Name Type Attributes Description
target Group <optional>
Fires
Details