Closed jfmathieu closed 4 years ago
The two components work a bit different. The accordion is a one item wrapper, while the slider take a list of items and this impacts how the template is passed. You can use a workaround like this where you pass the template as a string in a parameter.
{{#>slider items=(JSONstringify @root.items 2) options=(JSONstringify @root.sliderOptions)}}
<div class="slide" style="height: 360px;width: 318px;margin: 5px;">
Text
<pnp-popup template="<template id='popupclick'><span>TEST</span></template><template id='popupheader'><span>Title: TEST</span><br /><span>Header HTML here</span></template><template id='popupbody'><span>Title: TEST</span><br /><span>Body HTML here</span></template>
"/>
</div>
{{/slider}}
@jfmathieu managed to figure out a fix - pushed to the dev branch :)
Version used 3.15.1.0
Describe the bug I'm trying to integrate into a slider display a pnp-popup "popup". The pnp-popup work well in the accordeon but not in the slider. I get the error message : "Template element with ID equal to "popupclick" not found" instead of the item result.
To Reproduce Steps to reproduce the behavior:
Code to past:
Expected behavior Expect to see the popup link in the slider and the popup when clicking on the link.
Screenshots Should see this:
Desktop (please complete the following information):