neft
Version:
JavaScript. Everywhere.
62 lines (47 loc) • 4.01 kB
Markdown
> [Wiki](Home) ▸ [[API Reference|API-Reference]] ▸ [[Renderer|Renderer-API]] ▸ **Flow**
# Flow
```javascript
Flow {
width: 90
spacing.column: 15
spacing.row: 5
Rectangle { color: 'blue'; width: 60; height: 50; }
Rectangle { color: 'green'; width: 20; height: 70; }
Rectangle { color: 'red'; width: 50; height: 30; }
Rectangle { color: 'yellow'; width: 20; height: 20; }
}
```
> [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/renderer/types/layout/flow.litcoffee#flow)
## Table of contents
* [Flow](#flow)
* [**Class** Flow](#class-flow)
* [New](#new)
* [padding](#padding)
* [spacing](#spacing)
* [alignment](#alignment)
* [includeBorderMargins](#includebordermargins)
* [collapseMargins](#collapsemargins)
* [Glossary](#glossary)
#**Class** Flow
<dl><dt>Syntax</dt><dd><code>**Class** Flow : *Item*</code></dd><dt>Extends</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Item-API#class-item">Item</a></dd></dl>
> [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/renderer/types/layout/flow.litcoffee#class-flow)
##New
<dl><dt>Syntax</dt><dd><code>*Flow* Flow.New([*Component* component, *Object* options])</code></dd><dt>Static method of</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Flow-API#class-flow">Flow</a></dd><dt>Parameters</dt><dd><ul><li>component — <i>Component</i> — <i>optional</i></li><li>options — <a href="/Neft-io/neft/wiki/Utils-API#isobject">Object</a> — <i>optional</i></li></ul></dd><dt>Returns</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Flow-API#class-flow">Flow</a></dd></dl>
> [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/renderer/types/layout/flow.litcoffee#new)
##padding
<dl><dt>Syntax</dt><dd><code>*Item.Margin* Flow::padding</code></dd><dt>Prototype property of</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Flow-API#class-flow">Flow</a></dd><dt>Type</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Item.Margin-API#class-margin">Item.Margin</a></dd></dl>
> [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/renderer/types/layout/flow.litcoffee#padding)
##spacing
<dl><dt>Syntax</dt><dd><code>*Item.Spacing* Flow::spacing</code></dd><dt>Prototype property of</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Flow-API#class-flow">Flow</a></dd><dt>Type</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Item.Spacing-API#class-spacing">Item.Spacing</a></dd></dl>
> [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/renderer/types/layout/flow.litcoffee#spacing)
##alignment
<dl><dt>Syntax</dt><dd><code>*Item.Alignment* Flow::alignment</code></dd><dt>Prototype property of</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Flow-API#class-flow">Flow</a></dd><dt>Type</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Item.Alignment-API#class-alignment">Item.Alignment</a></dd></dl>
> [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/renderer/types/layout/flow.litcoffee#alignment)
##includeBorderMargins
<dl><dt>Syntax</dt><dd><code>*Boolean* Flow::includeBorderMargins = `false`</code></dd><dt>Prototype property of</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Flow-API#class-flow">Flow</a></dd><dt>Type</dt><dd><i>Boolean</i></dd><dt>Default</dt><dd><code>false</code></dd></dl>
> [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/renderer/types/layout/flow.litcoffee#includebordermargins)
##collapseMargins
<dl><dt>Syntax</dt><dd><code>*Boolean* Flow::collapseMargins = `false`</code></dd><dt>Prototype property of</dt><dd><a href="/Neft-io/neft/wiki/Renderer-Flow-API#class-flow">Flow</a></dd><dt>Type</dt><dd><i>Boolean</i></dd><dt>Default</dt><dd><code>false</code></dd></dl>
> [`Source`](/Neft-io/neft/blob/564f8d734f4e3d2b9c5aa3d8f0b6cad0c8b3f9f0/src/renderer/types/layout/flow.litcoffee#collapsemargins)
# Glossary
- [Flow](#class-flow)