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

Using a custom DOM element for the container property #10

Open
zion opened this issue Sep 9, 2019 · 0 comments
Open

Using a custom DOM element for the container property #10

zion opened this issue Sep 9, 2019 · 0 comments

Comments

@zion
Copy link

zion commented Sep 9, 2019

I have a .grid-container element that I want this message to display in, however, when I add document.getElementByClassName('.grid-container') to the container property in my env file I get:

Could not require 'ember-cli-build.js': document is not defined

Seems that upon building the build files aren't sure what document is. Is there a way I could update the config object after the app has been built? That sounds like a bad idea, however, not sure what else to do.

Or maybe the addon could accept a string of a class name or id of an element and the addon could translate that to a DOM object for BU?

I could do a PR for this, with a little direction on the desired solution here.

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