filemanager in angular 6

Hi all,
I am trying using filemanager in my angular 6 app, but I got an error
unknown view: filemanager

here is my code

import { Component, ElementRef, OnDestroy, OnInit } from '@angular/core';
import * as webix from "webix";
import  'filemanager/codebase/filemanager';

declare let $$:any;
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit, OnDestroy {

  private ui : webix.ui.filemanager;

  constructor(root: ElementRef){
   webix.ready(()=>{
    this.ui = <webix.ui.filemanager> webix.ui({
            rows:[
                { view: "label", css: "header", label: "File Manager allows to upload files into selected folder."},
                {
                    view:"filemanager",
                    id:"files",
                    handlers:{
                        "upload" : "https://jsonplaceholder.typicode.com/users",
                        "download": "https://jsonplaceholder.typicode.com/users",
                        "remove": "https://jsonplaceholder.typicode.com/users"
                    }
                }
            ]
        });

        $$("files").load("https://jsonplaceholder.typicode.com/users");
   });
  }

   ngOnInit(){
     this.ui.resize();
  }
  ngOnDestroy(){
     this.ui.destructor();
  }


}

Thanks

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!