DMXzone PrintIt Support Product Page
Doesn't need answer
Accordion
Asked 7 years ago
1
has this question
7 years ago David Woolley posted:
I need to print the content in an open panel of a DMX Accordion.Not sure how to allocate the IDs - each panel would need a separate ID.
Is this at all possible? If not, any other suggestions?
Replies
Replied 7 years ago
7 years ago David Woolley replied:
I've found a solution 
I have a dynamic table in each panel, and used nested repeat regions in HTML5 Data Bindings to dynamically create the accordion.
Then used the $number binding to generate unique IDs for each panel. For example: div id="print{{$number}}"
Print button in each panel, then wrapped table with this div.
Cheers
Dave

I have a dynamic table in each panel, and used nested repeat regions in HTML5 Data Bindings to dynamically create the accordion.
Then used the $number binding to generate unique IDs for each panel. For example: div id="print{{$number}}"
Print button in each panel, then wrapped table with this div.
Cheers
Dave
Replied 6 years ago
6 years ago David Woolley replied:
I'm trying to print the contents of an open panel of a DMX Accordion using App Connect like so:
Content wrapped in a div with a dynamic ID - {{$index}} from the repeat children region:
<div dmx-bind:id="printMorph{{$index}}"> for unique IDs
Unique IDs for each div are formed correctly when inspected.
<button type="button" class="btn-primary" onClick="dmxPrintItFunc('printMorph{{$index}}','Print morphology','iframe',false);">Print list </button>
This uses a static event, but the unique id is not available in the PrintIt behavior dropdown - I added it to the code manually.
Any way round this?
Dave
Content wrapped in a div with a dynamic ID - {{$index}} from the repeat children region:
<div dmx-bind:id="printMorph{{$index}}"> for unique IDs
Unique IDs for each div are formed correctly when inspected.
<button type="button" class="btn-primary" onClick="dmxPrintItFunc('printMorph{{$index}}','Print morphology','iframe',false);">Print list </button>
This uses a static event, but the unique id is not available in the PrintIt behavior dropdown - I added it to the code manually.
Any way round this?
Dave