Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set new value #68

Open
anabrnjasevic opened this issue Dec 15, 2023 · 1 comment
Open

how to set new value #68

anabrnjasevic opened this issue Dec 15, 2023 · 1 comment

Comments

@anabrnjasevic
Copy link

Hi, I'm having trouble with changing the initial value of the counter, I'm using Vue 3, composition API. As I understand the documentation, value should update when it changes?

  hours: Number,
  minutes: Number,
  seconds: Number,
});

onMounted(() => {
  var element = document.querySelector("#tick");
   tick = Tick.DOM.create(element, {
    value: {
        sep:':',
        seconds:props.seconds,
        hours:props.hours,
        minutes:props.minutes,
    },
    
    didInit: function (tick) {
      console.log("hello!",tick);
    },
    });
});

onUnmounted(() => {
  Tick.DOM.destroy(tick);
});

any help would be appreciated...

@WillsB3
Copy link

WillsB3 commented Aug 6, 2024

Did you try setting value on the Tick instance…?

e.g. tick.value = x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants