getNamedFlows
Summary
Gathers NamedFlow objects, each representing a set of content that flows through various layout regions.
Method of dom/Documentdom/Document
Syntax
var flows = document.getNamedFlows();
Return Value
Returns an object of type DOM NodeDOM Node
Returns a static NamedFlowCollection object accessible via standard array methods. Each member is a NamedFlow instance representing a set of content that flows through various layout regions.
Examples
Various ways to access named flows:
var flow, flows;
flow = document.getNamedFlows().namedItem("main"); // typically by name
flow = document.getNamedFlows().item(0);
flow = document.getNamedFlows()[0];
flows = document.getNamedFlows();
for (var i = 0; i < flows.length; i++) {
flow = flows[i];
// do something with flow
}
Related specifications
- CSS Regions Module Level 1
- Working Draft
See also
External resources
- Adobe Web Standards: CSS Regions
- Adobe Developer’s Network: CSS3 Regions: Rich page layout with HTML and CSS3
- Sample pages