I have a text/x-template section that I want to modify when a user closes a modal. How do I access an individual cell template on the client side to modify it's DOM element?
${if(GradeFlagLink)}
${if(SOWName)}
${if(SegmentId)}
${if(TaskCount===0)}
<a rel='nofollow' href="javascript:ShowGradeModal(${GradeFlagLink},${SOWName},${SegmentId});">
<svg class="SolidFlag" xmlns="http://www.w3.org/2000/svg" width="20" height="22" viewBox="0 0 20 22">
<path id="flag" d="M17.533,6.588,17,4H5V26H7.667V16.941h7.467l.533,2.588H25V6.588Z" transform="translate(-5 -4)" />
</svg>
</a>
${/if}
${if(TaskCount>0)}
<a rel='nofollow' href="javascript:ShowGradeModal(${GradeFlagLink},${SOWName},${SegmentId});">
<svg class="HollowFlag" xmlns="http://www.w3.org/2000/svg" width="20" height="22" viewBox="0 0 20 22">
<path id="flag" d="M7.5,7.5H19.532l1.649,2.75H27.5V22.625H18.929l-1.65-2.75H8.929V29.5H7.5ZM26.071,21.25V11.625H20.357l-1.65-2.75H8.929V18.5H18.1l1.649,2.75Z" transform="translate(-7.5 -7.5)"></path>
</svg>
</a>
${/if}
${/if}
${/if}
${/if}
</script>
Was there any documentation around modifying the templated column fields client side?
Hello Thiyagu,
Any luck on this?
Regards,
Michael
|
<script id="edit" type="text/x-template">
${if(CustomerID === "ANATR")}
. . . . .
${else if(CustomerID === "ANTON")}
. . . . .
${else}
. . . . . .
${/if}
</script> |