avatar
styleString in HTL AEM component AEM

» Custom Inline Style

<sly data-sly-test.customStyle="${properties.isVerified == 'true' ? 'margin-top: auto; margin-bottom: auto; margin-left: auto;' : ''}"/>

» Block Elements

<div style="display: flex;">
    <h1></h1>
    <span style="${customStyle @ context='styleString'}"></span>
</div>


24
aem component checkbox default checked create new component AEM
You need to login to do this manipulation!