namedItem()
Summary
Retrieve a named flow by its name
Method of apis/css-regions/NamedFlowCollectionapis/css-regions/NamedFlowCollection
Syntax
var flow = flows.namedItem(name);
Parameters
name
- Data-type
- String
the name of the named flow
Return Value
Returns an object of type DOM NodeDOM Node
the NamedFlow object that corresponds to the specified name
Examples
Retrieve the main flow from the document, in one method-chained line:
var flow = document.getNamedFlows().namedItem('main');
Usage
The NamedFlowCollection object is an array snapshot of a document's named flows. This method allows you to access a specific flow directly by its name, rather than by iterating over the array.
Related specifications
- CSS Regions Module Level 1
- W3C Working Draft 28 May 2013
See also
Related articles
Regions
namedItem()
External resources
- W3C editor’s draft: CSS Regions Module Level 3
- Adobe Web Standards: CSS Regions
- Adobe Developer’s Network: CSS3 Regions: Rich page layout with HTML and CSS3
- Sample pages