Class IgxFlexDirective

Hierarchy

Hierarchy

  • IgxFlexDirective

Constructors

Properties

basis: string = 'auto'

Applies the flex-basis attribute to an element that uses the directive.

Default value is auto.

Other possible values include content, max-content, min-content, fit-content.

<div igxFlex igxFlexBasis="fit-content">Content</div>
flex: string = ''

Applies the directive to an element.

Possible values include igxFlexGrow, igxFlexShrink, igxFlexOrder, igxFlexBasis.

<div igxFlex>Content</div>
grow: number = 1

Applies the grow attribute to an element that uses the directive.

Default value is 1.

<div>
<div igxFlex igxFlexGrow="0">Content1</div>
<div igxFlex igxFlexGrow="1">Content2</div>
<div igxFlex igxFlexGrow="0">Content3</div>
</div>
order: number = 0

Applies the order attribute to an element that uses the directive.

Default value is 0.

<div>
<div igxFlex igxFlexOrder="1">Content1</div>
<div igxFlex igxFlexOrder="0">Content2</div>
<div igxFlex igxFlexOrder="2">Content3</div>
</div>
shrink: number = 1

Applies the shrink attribute to an element that uses the directive.

Default value is 1.

<div>
<div igxFlex igxFlexShrink="1">Content1</div>
<div igxFlex igxFlexShrink="0">Content2</div>
<div igxFlex igxFlexShrink="1">Content3</div>
</div>