You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to create a multitemplate pager in a angular app on android platform, templates are ignored and just the first one is picked up.
I debugged a little bit your plugin and I noted that pagerTemplateKey are correctly parsed and registerTemplate method is called. The problem is that registerTemplate fills _templateMap variable but internally pager uses itemTemplates property to look for registered templates which is filled by setItemTemplates. But the latest is never called when a new template is registered.
I added a call to setItemTemplates at the end of registerTemplate and things seem to work again, but I'm not sure it is the right solution, maybe you can tell me something better.
Which platform(s) does your issue occur on?
Tryed on Android but probably affects both
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Hello @triniwiz,
When I try to create a multitemplate pager in a angular app on android platform, templates are ignored and just the first one is picked up.
I debugged a little bit your plugin and I noted that pagerTemplateKey are correctly parsed and registerTemplate method is called. The problem is that registerTemplate fills _templateMap variable but internally pager uses itemTemplates property to look for registered templates which is filled by setItemTemplates. But the latest is never called when a new template is registered.
I added a call to setItemTemplates at the end of registerTemplate and things seem to work again, but I'm not sure it is the right solution, maybe you can tell me something better.
Here is what i changed:
farzeni@fd3b525
Thank you for your work
The text was updated successfully, but these errors were encountered: