Ayush shrivastava
Ayush shrivastava

Reputation: 11

how to change style of html element based on content of div

enter image description hereI have

<div class="e-tab-text"
  _ngcontent-ori-c237=""
  role="presentation">2 Assign Roles</div>

I want to add custom style so for the number value "2" to show in a circle, in blue color, and "assign role" in black color using Angular, this is coming from ej2 angular syncfusion tab

I'm trying to expect html style changes based on content of text:

<e-tabitem [header]='headerText[1]'>

    <ng-template #content>
        <div id='rules'>
           <p>Assign rules</p>
        </div>
    </ng-template>
</e-tabitem>

Upvotes: 0

Views: 70

Answers (0)

Related Questions