[Vuejs]-Quasar q-tabs: how to dynamically show/hide q-tab by code?

0👍

There is an event @input about q-select, and we can trigger a model variable for every q-tab. It works for me

onDataSourceTypeChanged (event) {
  var dstype = this.datasource.datasourcetype
  if (dstype === 'datasourcetype.Customized') {
    this.dataentry.showOptionsTab = true
    this.dataentry.showDataEntryTab = false
    this.dataentry.showCasacdeFieldTab = false
  } else {
    this.dataentry.showOptionsTab = false
    this.dataentry.showDataEntryTab = true
    this.dataentry.showCasacdeFieldTab = true
  }
}

Leave a comment