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

Custom modal template #69

Closed
patrickberkeley opened this issue Aug 7, 2015 · 4 comments
Closed

Custom modal template #69

patrickberkeley opened this issue Aug 7, 2015 · 4 comments

Comments

@patrickberkeley
Copy link

Is it possible/expected to have content in a custom modal's corresponding template? For example from the section on custom modals in the readme, this mean content in app/templates/components/full-screen-modal.hbs would render within the custom modal.

@patrickberkeley
Copy link
Author

FWIW this was working a few versions of ember and ember-modal-dialog ago (not sure exactly where it stopped working), but does not work with ember-cli 1.13.1 and ember-modal-dialog 0.7.7.

@patrickberkeley
Copy link
Author

Turns out I needed to specify a the template explicitly (same as this addon does):

import ModalDialog from 'ember-modal-dialog/components/modal-dialog';
import template from '../templates/components/simple-menu';

export default ModalDialog.extend({
  layout: template
});

@jfrux
Copy link

jfrux commented Aug 31, 2015

@patrickberkeley Does this still work?
It doesn't seem to work for me?

@jfrux
Copy link

jfrux commented Aug 31, 2015

My bad, I think it's because I wasn't using Ember tether and I was putting it in the ember-tether area.

Ignore me.

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