0.0.6 • Published 5 years ago

ng6x-flex-pane v0.0.6

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

FlexPane

Is a set of Angular directives when used with @angular/flex-layout allows the user to resize view components dynamically. This work was inspired by an issue raised by Austin.

This project was generated with Angular CLI version 7.2.1.

Installation

npm i ng6x-flex-pane

Example Usage

<div style="height:900px; width:100%">
  <div fxLayout="column" style="height:100%">
    <!-- Top Panel -->
    <div fxLayout="row" fxFlex="auto">
      <!-- left panel -->
      <ng-container ortFlexPane="row">
        <mat-card fxFlex="30%" ortArea>
          <mat-card-title >
            Left Panel
          </mat-card-title>
        </mat-card>
        <div ortHandle fxLayoutAlign="center center">
          <button style="border:none; outline:none;">||</button>
        </div>      
      </ng-container>

      <!-- right panel -->
      <mat-card fxFlex="auto">
        <mat-card-title >
          Right Panel
        </mat-card-title>
      </mat-card>
    </div>

    <!-- bottom Panel -->
    <ng-container ortFlexPane="column">
      <div ortHandle fxLayoutAlign="center center">
        <button style="border:none; outline:none;"><div style="transform:rotate(90deg)">||</div></button>
      </div>      
    
      <mat-card fxFlex="30%" ortArea>
        <mat-card-title >
          Bottom Panel
        </mat-card-title>
      </mat-card>  
    </ng-container>
  </div>
</div>
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago