Yahoo! UI Library

gallery-node-extras  1.0.0

Yahoo! UI Library > gallery-node-extras > Node
Search:
 
Filters

Class Node

An expanded collection of methods for Y.Node

Methods

all

all ( Node )
Extends existing Y.Node.all to take no argument and return all the immediate children as a NodeList. This essentially makes nodeInstance.all() a synonym for nodeInstane.get('children')
Parameters:
Node <string|Y.Node> The selector to be passed to the underlying all implementation

frag

static void frag ( )
Returns a Document Fragment as a Y.Node
Returns: void

one

one ( node )
Extends existing Y.Node.one to take no argument and return the immediate child of the current node.
Parameters:
node <string|Y.Node> The node or selector to search for

wrapInner

void wrapInner ( The )
Wraps the content of this Node with new HTML
Parameters:
The <string | Y.Node | DOMNode> HTML Fragment to wrap around the contents of the current node.
Returns: void
Chainable: This method is chainable.


Copyright © 2011 Yahoo! Inc. All rights reserved.