dgp-ng-docking-layout
TypeScript icon, indicating that this package has built-in type declarations

16.8.1 • Public • Published

dgp-ng-docking-layout

Docking layout and split panels for Angular material apps.

Installation

npm install --save dgp-ng-docking-layout 

Notes

  • dgp-ng-docking-layout requires JQuery ^3

Usage

Include the stylesheet in your global styles.scss.

@import '~dgp-ng-docking-layout/theming';

Split panel

<!-- Add dgp-split-panel and set its orientation -->
<dgp-split-panel orientation="horizontal">

    <!-- Add dgp-split-panel-content and set its size (a percentage value) -->
    <dgp-split-panel-content size="20">
        <!-- Wrap your content in ng-templates -->
        <ng-template>A</ng-template>
    </dgp-split-panel-content>

    <dgp-split-panel-content size="30">
        <ng-template>B</ng-template>
    </dgp-split-panel-content>

    <dgp-split-panel-content size="50">
        <ng-template>

            <!-- Nested panel -->
            <dgp-split-panel orientation="vertical">
                <dgp-split-panel-content size="50">
                    <ng-template>C</ng-template>
                </dgp-split-panel-content>

                <dgp-split-panel-content size="50">
                    <ng-template>D</ng-template>
                </dgp-split-panel-content>
            </dgp-split-panel>
        </ng-template>

    </dgp-split-panel-content>
</dgp-split-panel>

Readme

Keywords

none

Package Sidebar

Install

npm i dgp-ng-docking-layout

Weekly Downloads

367

Version

16.8.1

License

MIT

Unpacked Size

1.01 MB

Total Files

238

Last publish

Collaborators

  • dgp-web