I have the following template file:
<h2 style="margin-top: 20px" class="ui header">{{t 'Unscheduled Sessions'}}</h2>
<div id="sessions-list">
{{#each unscheduled as |session|}}
{{#draggable-object content=session}}
<div class="unscheduled" data-toggle="tooltip" data-animation="false" data-placement="top" draggable="true">
<span class="text">
{{session.title}} |
</span>
{{#each session.speakers as |speaker|}}
<span class="text speaker">
{{speaker.name}}
</span>
{{/each}}
</div>
{{/draggable-object}}
{{/each}}
</div>
I want to add a data
attribute to the elements generated by the {{draggable object ...}}
helper. This attribute should essentially have its value as session
, and it's not the same as content
. Any idea how to accomplish this?