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

inline mode #29

Closed
nicolalopatriello opened this issue Feb 8, 2018 · 2 comments
Closed

inline mode #29

nicolalopatriello opened this issue Feb 8, 2018 · 2 comments

Comments

@nicolalopatriello
Copy link

It is possible to use inline mode?
I tried but seem to receive an error:

Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

Thanks

@brejw
Copy link

brejw commented Feb 8, 2018

Hello,
I had same problem but i managed to solve it.
I found explanation for this problem on StackOverflow https://stackoverflow.com/questions/9128015/getting-cannot-read-property-nodetype-of-null-when-calling-ko-applybindings

Then I applied config in ngOnInit, where you have to bind our calendar do HTMLElement
this.pickerConfig = { ... appendTo: document.getElementById('ID'), inline: true, ... }

After this calendar shows on the page in inline mode :)

@nicolalopatriello
Copy link
Author

nicolalopatriello commented Feb 9, 2018

Ok it works 👍

Thanks

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