NodeList
The NodeList class provides a wrapper for manipulating DOM Node. use KISSY.all/one to retrieve NodeList instances
defined in: base.js
Class
- NodeList ()
Attributes
- length {Number} length of nodelist
Methods
- add (selector, context, index) Add existing node list.
- NodeList. all (selector, context) <static> Get node list from selector or construct new node list from html string.
- all (selector) Get node list which are descendants of current node list.
- each (fn, context) Applies the given function to each Node in the NodeList.
- end () return last stack node list.
- getDOMNode () Retrieves the DOMNode.
- getDOMNodes () Retrieves the DOMNodes.
- item (index) Get one node at index
- slice (start, end) Get part of node list.
Class Detail
-
NodeList ()The NodeList class provides a wrapper for manipulating DOM Node. use KISSY.all/one to retrieve NodeList instances
Methods Detail
-
add (selector, context, index) view sourceAdd existing node list.
- Parameters
-
- selector {String|HTMLElement[]|NodeList} Selector string or html string or common dom node.
-
[
context
]
{String|Array
|NodeList|HTMLElement|Document} Search context for selector - [ index ] {Number} Insert position.
- Returns
-
- {NodeList}
-
Get node list from selector or construct new node list from html string. Can also called from KISSY.all
- Parameters
-
- selector {String|HTMLElement[]|NodeList} Selector string or html string or common dom node.
-
[
context
]
{String|Array
|NodeList|HTMLElement|Document} Search context for selector
- Returns
-
- {NodeList}
-
all (selector) view sourceGet node list which are descendants of current node list.
- Parameters
-
- selector {String} Selector string
- Returns
-
- {NodeList}
-
each (fn, context) view sourceApplies the given function to each Node in the NodeList.
- Parameters
-
- fn The function to apply. It receives 3 arguments: the current node instance, the node's index, and the NodeList instance
- [ context ] An optional context to apply the function with Default context is the current NodeList instance
-
end () view sourcereturn last stack node list.
- Returns
-
- {NodeList}
-
getDOMNode () view sourceRetrieves the DOMNode.
-
getDOMNodes () view sourceRetrieves the DOMNodes.
-
item (index) view sourceGet one node at index
- Parameters
-
- index {Number} Index position.
- Returns
-
- {NodeList}
-
slice (start, end) view sourceGet part of node list.
- Parameters
-
- start {Number} Start position.
- end {number} End position.
- Returns
-
- {NodeList}
Classes
- Anim
- Anim.Easing
- Attribute
- Base
- Button
- ComboBox
- ComboBox.LocalDataSource
- ComboBox.RemoteDataSource
- Component
- Component.Container
- Component.Controller
- Component.Manager
- Component.Render
- Component.UIBase
- Component.UIBase.Align
- Component.UIBase.Box
- Component.UIBase.Close
- Component.UIBase.Constrain
- Component.UIBase.ContentBox
- Component.UIBase.Drag
- Component.UIBase.Loading
- Component.UIBase.Mask
- Component.UIBase.Position
- Component.UIBase.Resize
- Component.UIBase.StdMod
- Cookie
- DataLazyload
- DD
- DD.Constrain
- DD.DDM
- DD.Draggable
- DD.DraggableDelegate
- DD.Droppable
- DD.DroppableDelegate
- DD.Proxy
- DD.Scroll
- DOM
- Editor
- Editor.Range
- Editor.Utils
- Editor.Walker
- Event
- Event.Object
- Event.Target
- IO
- IO.XhrObject
- KISSY
- KISSY.Defer
- KISSY.Loader
- KISSY.Loader.Module
- KISSY.Loader.Package
- KISSY.Promise
- Menu
- Menu.FilterMenu
- Menu.Item
- Menu.PopupMenu
- Menu.Separator
- MenuButton
- MenuButton.Option
- MenuButton.Select
- MVC
- MVC.Collection
- MVC.Model
- MVC.Router
- MVC.View
- NodeList
- Overlay
- Overlay.Dialog
- Overlay.Popup
- Resizable
- Tree
- Tree.CheckNode
- Tree.CheckTree
- Tree.Node
- Waterfall
- Waterfall.Loader