A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/css-regions/NamedFlowCollection below:

NamedFlowCollection · WebPlatform Docs

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4