onDisposition() {
    const specialityButton = document.getElementById("speciality-btn");
    specialityButton.classList.add("active");
  
    document.getElementById("none-btn").addEventListener("click",
      this.context.changeDisposition("none")
    );
    specialityButton.addEventListener("click",
      this.context.changeDisposition("speciality")
    );
    specialityButton.classList.add("focus");
    document.getElementById("city-btn").addEventListener("click",
      this.context.changeDisposition("city")
    );
    document.getElementById("cabinet-btn").addEventListener("click",
      this.context.changeDisposition("cabinet")
    );
  }
/**
   * Init click listeners on disposition buttons
   */
Init click listeners on disposition buttons
Init click listeners on disposition buttons
onDisposition() {
    const specialityButton = document.getElementById("speciality-btn");
    specialityButton.classList.add("active");
    document.getElementById("none-btn").addEventListener("click",
      this.context.changeDisposition("none")
    );
    specialityButton.addEventListener("click",
      this.context.changeDisposition("speciality")
    );
    specialityButton.classList.add("focus");
    document.getElementById("city-btn").addEventListener("click",
      this.context.changeDisposition("city")
    );
    document.getElementById("cabinet-btn").addEventListener("click",
      this.context.changeDisposition("cabinet")
    );
  }
onDisposition ( ) { const specialityButton = document . getElementById ( "speciality-btn" ) ; specialityButton . classList . add ( "active" ) ; document . getElementById ( "none-btn" ) . addEventListener ( "click" , this . context . changeDisposition ( "none" ) ) ; specialityButton . addEventListener ( "click" , this . context . changeDisposition ( "speciality" ) ) ; specialityButton . classList . add ( "focus" ) ; document . getElementById ( "city-btn" ) . addEventListener ( "click" , this . context . changeDisposition ( "city" ) ) ; document . getElementById ( "cabinet-btn" ) . addEventListener ( "click" , this . context . changeDisposition ( "cabinet" ) ) ; }
Init click listeners on disposition buttons
Init click listeners on disposition buttons