Disable (click) function based on condition

Discussão em 'Angular' iniciado por Rishi Khemka, Junho 3, 2025.

  1. Rishi Khemka

    Rishi Khemka Guest

    here the enableAddLink function looks like this in the typescript

    enableAddLink() {
    this.storyboard.network.addNodeMode = false;
    this.addNodeMode = false;
    this.addLinkMode = !this.addLinkMode;
    this.storyboard.network.addLinkMode = this.addLinkMode;
    }


    The links should get created only when nodes exist else I want it to be disabled.

    Continue reading...

Compartilhe esta Página