This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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