enable(enabled) {
    const enabledNames = new Set(enabled);
    for (const [name, value] of Object.entries(this.views)) {
      value.disabled = !enabledNames.has(name);
    }
  }
/**
   * Enable given list of views and disable the other ones.
   *
   * @param {Array} enabled enabled names.
   */
Enable given list of views and disable the other ones.
@param {Array} enabled enabled names.
Enable given list of views and disable the other ones . @param { Array } enabled enabled names .
enable(enabled) {
    const enabledNames = new Set(enabled);
    for (const [name, value] of Object.entries(this.views)) {
      value.disabled = !enabledNames.has(name);
    }
  }
enable ( enabled ) { const enabledNames = new Set ( enabled ) ; for ( const [ name , value ] of Object . entries ( this . views ) ) { value . disabled = ! enabledNames . has ( name ) ; } }
Enable given list of views and disable the other ones.
Enable given list of views and disable the other ones .