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

Is there a way of mounting the app in a custom node? #41

Closed
alexfertel opened this issue Feb 20, 2019 · 5 comments
Closed

Is there a way of mounting the app in a custom node? #41

alexfertel opened this issue Feb 20, 2019 · 5 comments

Comments

@alexfertel
Copy link

I couldn't find anywhere how to mount the app in a custom node. I would like to integrate stagejs with vuejs to make a domino game.

@shakiba
Copy link
Collaborator

shakiba commented Feb 21, 2019

This should work: Stage(callback, {canvas: idOrDom});

@alexfertel
Copy link
Author

Thx for the quick answer, but my problem remains.

This creates a canvas element as a child of body as if I didn't specify anything.

@shakiba
Copy link
Collaborator

shakiba commented Feb 23, 2019

It needs to be an existing canvas element or its id, see here.

@alexfertel
Copy link
Author

Thx, I was trying to mount it on a div element. Sorry for the trouble!

@shakiba
Copy link
Collaborator

shakiba commented Mar 2, 2019

No problem! :)

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