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

Add template level subscription to AutoForm Modal? #58

Open
brylie opened this issue Sep 16, 2015 · 2 comments
Open

Add template level subscription to AutoForm Modal? #58

brylie opened this issue Sep 16, 2015 · 2 comments

Comments

@brylie
Copy link

brylie commented Sep 16, 2015

I have a data type that consists of composite collections.

How can I access the Template instance for an AutoForm Modal? E.g. how can I add an instance level subscription when a specific AutoForm Modal is created, such as:

{{ afModal ... id="editCollectionItemModal" ... }}
Template.editCollectionItemModal.created = function {
  this.subscribe('compositeSubscription');
};
@aposidelov
Copy link

https://atmospherejs.com/aposidelov/autoform-bootstrap-modal - this package provides dynamic modal generation and template level subscription.

@brylie
Copy link
Author

brylie commented Nov 28, 2016

We ended up migrating to peppelg:bootstrap-3-modal, which allows us to pass in a data context and define the modal as a full-fledged template.

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