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 get extension "dots"... Error: Can't get extension with name "dots", "dots" is not available #7

Open
parth-1203 opened this issue Apr 1, 2023 · 2 comments

Comments

@parth-1203
Copy link

I could create a Flip timer using

import Tick from 'https://cdn.jsdelivr.net/npm/@pqina/[email protected]/+esm';
...
Tick.DOM.create({
  value: 1,
  view: {
    ....
  }
})

But not sure how to create a dots counter. I tried the following way:

import Tick from 'https://cdn.jsdelivr.net/npm/@pqina/[email protected]/+esm';
...
Tick.DOM.create({
  value: {
    days: 12,
  },
  view: {
    children: [
      {
        root: 'div',
        children: [
          {
            view: 'dots',
            key: 'days',
          },
        ],
      },
    ],
  },
});

The web console says
image

If I had to do it using this way Tick.DOM.create with value and view params.... how would I be able to render a dots timer?

I can't find any import with +esm that includes core and dots.

@rikschennink
Copy link
Collaborator

You need to register the "dots" view: https://github.com/pqina/tick/tree/master/dist/view-dots

@parth-1203
Copy link
Author

@rikschennink Thank you @rikschennink for the response. How would I be able to import this in modular fashion. Something along the lines of the following code?

import Tick from 'https://github.com/pqina/tick/blob/master/dist/view-dots/tick.view.dots.global/+esm' ???

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