DMXzone PrintIt Support Product Page

Doesn't need answer

Accordion

Asked 16 Nov 2017 07:37:39
1
has this question
16 Nov 2017 07:37:39 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 16 Nov 2017 08:58:23
16 Nov 2017 08:58:23 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
Replied 05 Nov 2018 14:33:24
05 Nov 2018 14:33:24 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

Reply to this topic