DaffManageContainerLayoutDirective

A directive that gives a component the ability to manage a DaffContainerComponent's layout. By including this directive, predetermined layout styles are passed down to the container.

To understand the motivation for this directive, consider:

<daff-container>
 <daff-hero></daff-hero>
</daff-container>

vs.

<daff-hero>
  <daff-container></daff-container>
</daff-hero>

The former may inappropriately constrain the width of its child elements, while the latter (without DaffManageContainerLayoutDirective) may unexpectedly interfere in the layout features of its parent element (i.e. display: grid, display: flex).

Selector: '[daffManageContainerLayout]'

Properties

Name Type Description
class true
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.