Members
-
<readonly> $el :jQuery
-
Details
-
condition :string
-
Details
-
data :object
-
Details
-
error :string
-
Details
-
<readonly> flags :object
-
Details
-
<readonly> id :string
-
Details
-
<readonly> level :int
-
Details
-
<readonly> model :Model
-
Details
-
not :boolean
-
Description
Details
-
<readonly> parent :Group
-
Details
-
<readonly> rules :Array.<object>
-
Details
Methods
-
addGroup( $el [, index ] ) → {Group}
-
Description
Adds a new Group at specified index
Parameters
Name Type Attributes Default Description $el
jQuery index
int <optional> end Returns
Fires
Details
-
addRule( $el [, index ] ) → {Rule}
-
Description
Adds a new Rule at specified index
Parameters
Name Type Attributes Default Description $el
jQuery index
int <optional> end Returns
Fires
Details
-
contains( node [, recursive ] ) → {boolean}
-
Description
Checks if the group contains a particular Node
Parameters
Name Type Attributes Default Description node
Node recursive
boolean <optional> false Returns
Details
-
drop()
-
Description
Deletes self
Details
-
each( [ reverse ], cbRule [, cbGroup [, context ] ] ) → {boolean}
-
Description
Iterate over all Nodes
Parameters
Name Type Attributes Default Description reverse
boolean <optional> false iterate in reverse order, required if you delete nodes
cbRule
Model#GroupIteratee callback for Rules (can be
null
but not omitted)cbGroup
Model#GroupIteratee <optional> callback for Groups
context
object <optional> context for callbacks
Returns
Details
-
empty()
-
Description
Removes group's content
Details
-
getNodePos( node ) → {int}
-
Description
Returns the position of a child Node
Parameters
Name Type Description node
Node Returns
Details
-
getPos() → {int}
-
Description
Returns the node position inside its parent
Returns
Details
-
insertNode( node [, index [, trigger ] ] ) → {Node}
-
Description
Adds a Node at specified index
Parameters
Name Type Attributes Default Description node
Node index
int <optional> end trigger
boolean <optional> false fire 'add' event
Returns
Fires
Details
-
isRoot() → {boolean}
-
Description
Checks if this Node is the root
Returns
Details
-
length() → {int}
-
Description
Returns the number of children
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
-
removeNode( node )