This page is Ready to Use

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

NamedFlowCollection

Summary

Obsolete. Replaced by NamedFlowMap. Represents a static snapshot array of a document’s available named flows

Properties

No properties.

Methods

namedItem
Retrieve a named flow by its name

Events

No events.

Examples

Retrieve the main flow from the document, in one method-chained line:

var flow = document.getNamedFlows().namedItem('main');

Same as above, but iterates over the NamedFlowCollection object represented in a flows variable:

var flow;
var flows = document.getNamedFlows();
for (var i = 0; i < flows.length; i++) {
    if (flows[i].name == 'main') {
        flow = flows[i];
        break;
    }
}

Usage

 For any flows in the collection that  disappear when they are no longer assigned to any content, item() and namedItem() yield null.

Related specifications

CSS Regions Module Level 1
W3C Working Draft 28 May 2013

See also

Related articles

Regions