typescript и webix.extend

Добрый день

В проекте используется typescript. Есть форма, которую нужно расширить через webix.extend

class StartView extends JetView {
  config () {

    const ui = {
       view : "form",
       id : "form",
       rows : [
         { view: "text", id: "fam", name: "fam", label: "Фамилия" },
                        { view: "text", id: "im", name: "im", label: "Имя" },
                        { view: "text", id: "ot", name: "ot", label: "Отчество" },
         {
           cols: [
             {},
             {
               view: "button", value: "Test", click: () => this.do_test(), hotkey: "enter", css: "webix_primary"
             }
                    ]
         }
      ]
    }

    return ui;
  }

  do_test(){
    const form = this.$$("form") as webix.ui.form; 
    webix.extend(form,webix.ProgressBar)
    form.showProgress() //ОШИБКА

  }
}

Каким образом отобразить индикатор прогресса?

Comments

  • const form = this.$$("form") as webix.ui.form & webix.ProgressBar;

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!

In this Discussion