# All methods

<vac :left-time="9999999000">
  <div
    slot="prev"
    slot-scope="vac">
    <button type="button"
      @click="() => {
        vac.startCountdown()
      }"
      :disabled="vac.state === 'process' || vac.state === 'finised'">Start</button>
    <button type="button"
      @click="() => {
        vac.startCountdown(true)
      }"
      :disabled="vac.state !== 'finised' && vac.state !== 'stoped'">reStart</button>
    <button type="button"
      @click="() => {
        vac.pauseCountdown()
      }"
      :disabled="vac.state !== 'process'">Pause</button>
    <button type="button"
      @click="() => {
        vac.stopCountdown()
      }"
      :disabled="vac.state !== 'process'">Stop</button>
    <button type="button"
      @click="() => {
        vac.switchCountdown()
      }"
      :disabled="vac.state === 'finised'"
      >Switch - {{ vac.state === 'stoped' ? 'Start' : 'Stop' }}</button>
    <button type="button"
      @click="() => {
        vac.finishCountdown()
      }"
      :disabled="vac.state === 'finised'">Finish</button>
  </div>
  <span
    slot="process"
    slot-scope="{ timeObj, state }">
      {{ timeObj.ceil.s }} {{ state }}
  </span>
  <span slot="finish">Done!</span>
</vac>