mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 127 forks source link

How can i initialize an appended calendar DOM #55

Closed bimahp closed 7 years ago

bimahp commented 7 years ago

Hello, I want to add calendar UI into my new appended DOM, like this:

var appended = $(element).appendTo(container);
appended.find('#calendar').calendar({type: 'date'});

but it shows 'calendar is not a function' error, is this an expected behaviour or there is something i missed? Thanks.

mdehoog commented 7 years ago

Could you please provide a jsbin?

bimahp commented 7 years ago

Oh nvm, i just solved my problem. Its looks like there is something wrong with my scoping when i wrote it in pug.js format and separated files

anw, here is what i'm trying to achieve https://jsbin.com/situgizoti

Thanks.