2.0.0-angular16-01 • Published 11 months ago

@linnworks/native-apps v2.0.0-angular16-01

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

NativeApps

This library was generated with Angular CLI version 14.0.0.

Usage

  1. npm i @linnworks/native-apps @linnworks/design-system -S
  2. Somewhere in your application:
@NgModule({
  imports: [
    DesignSystemModule.forRoot(), //import both linnworks libraries together
    NativeAppsModule.forRoot() 
  ]
})
export class AppModule {
}

//some view with fullscreen popup which could be used as iframe inside linnworks.net:
@Component({
  selector: 'app-window',
  templateUrl: './window.component.html',
  styleUrls: ['./window.component.scss']
})
export class WindowComponent implements OnInit {

  constructor(private dialog: NativeAppsService) {
  }

  /**
  * visit https://material.angular.io/components/dialog/overview for dialog examples
  */
  ngOnInit(): void {
    this.dialog.openIframeDialog(DialogComponent);//open dialog in fullscreen mode which is suitable to be used in iframe
  }

}
2.0.0-angular16-01

11 months ago

1.0.0

2 years ago