I’m trying to pass a DOM element into an Ember add on component
I’m the Toolbar component from this add-on: https://github.com/aonawale/ember-material-components
In the raw non ember material-design-components a global script is used to do this:
toolbar.fixedAdjustElement = document.querySelector('.mdc-toolbar-fixed-adjust');
Following through the code in the ember component it looks like the contentElement argument should contain the .mdc-toolbar-fixed-adjust element.
I’ve tried to do this… but it’s not working:
{{#mdc-toolbar isWaterfall=true isFixed=true isLastRowFixed=true isFlexible=true contentElement=Ember.$('.mdc-toolbar-fixed-adjust')[0]}}
Is it possible to pass a DOM element into a component in this way?