Access data attribute from component's HTL in Touch UI dialogs context
We need to access a data attribute (or a hidden element with some value) from component's HTL inside a clientlibs which loads only when dialog opens. We need to perform some check based on a configuration which is available in HTL and we are able to provide it via data attribute or a separate hidden element.
Since we cannot access any page elements from dialog clientlibs, we are unable to access this value as well.
Is there a way we can access this value from HTL or another way to pass it to clientlib on dialog open.
We have tried window.parent.document etc but this doesn't give component's HTL.
thanks.



