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 can I use histogram-slider using CDN? #30

Open
Bjunk opened this issue Dec 10, 2020 · 0 comments
Open

How can I use histogram-slider using CDN? #30

Bjunk opened this issue Dec 10, 2020 · 0 comments

Comments

@Bjunk
Copy link

Bjunk commented Dec 10, 2020

Hi, I tried to use CDN histogram-slider in html file but It didn´t work. Is there any example to use like this? I will really appreciate it.

<script src="https://unpkg.com/vue-histogram-slider></script>
<script> Vue.component('HistogramSlider', {template: ' '} );

var slider = new Vue({
el: '#app2',
data() {
return {
data: ["2004-11-23T22:00:00.000Z", "2005-02-28T22:00:00.000Z", "2012-08-09T21:00:00.000Z"].map(d => new Date(d).valueOf()),
prettify: function(ts) {
return new Date(ts).toLocaleDateString('en', {
year: 'numeric',
month: 'short',
day: 'numeric'
})
}
}
}
});
</script>

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

1 participant