Skip to content

Clear Request #6

Description

@dallasbeek

Requesting a clear function as my reminder displays a modal and I'd like to hide it when the timer is reset.

    clearTimer(loop = false) {
      window.clearInterval(this.timer);
      window.clearInterval(this.counter);
      this.$emit("clear");   // Raise event to indicate timer has been cleared.
      if (loop) {
        this.start = Date.now();
        this.diff = 0;
        this.setDisplay();
        this.setTimer();
      }
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions