Skip to content

Dockview bindings for Angular (unofficial). Dockview is a zero dependency Docking Layout Manager for the web, written in TypeScript.

License

Notifications You must be signed in to change notification settings

martinzima/ngx-dockview

Repository files navigation

ngx-dockview

npm version npm downloads License: MIT

Dockview wrapper for Angular (unofficial).

Dockview is a zero dependency Docking Layout Manager for the web, written in TypeScript.

THIS IS STILL IN DEVELOPMENT AS OF NOW (2025-07) AND NOT READY FOR PRODUCTION USE.

Installation

# npm

npm install ngx-dockview dockview-core

# yarn

yarn add ngx-dockview dockview-core

# pnpm

pnpm add ngx-dockview dockview-core

Usage

import { DockviewComponent, DockviewPanelDirective, DockviewPanelTemplateDirective } from 'ngx-dockview';

@Component({
  selector: 'app-root',
  template: `
    <dv-dockview style="height: 100%; width: 100%; display: block;"
      (ready)="onReady($event)">
      <!-- declarative approach -->
      <ng-template [dvPanelTemplate]="'one'" let-params>
        <h1>One</h1>
      </ng-template>

      <dv-panel id="one" [view]="'one'" [title]="'One'">
      </dv-panel>
    </dv-dockview>
  `,
  imports: [DockviewComponent, DockviewPanelTemplateDirective, DockviewPanelDirective]
})
export class AppComponent {
  onReady(event: DockviewReadyEvent) {
    // use event.api for imperative approach
  }
}

For more elaborate example showing more features of the library, please see the demo.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Dockview bindings for Angular (unofficial). Dockview is a zero dependency Docking Layout Manager for the web, written in TypeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published