Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
260
cellClass not being applied to igx-column-group
posted

Hello,

According to https://ko.infragistics.com/products/ignite-ui-angular/docs/typescript/classes/igxcolumngroupcomponent.html cellClasses is a supported property for the igx-column-group control.

When I attempt to apply a css class using this property though it is ignore. Here is a sample of my implementation:

<igx-column-group [header]="'Contact Name'" [cellClasses]="igx-thead_center-and-middle-text">

Am I missing something?

Thanks!

Parents Reply
  • 280
    Offline posted in reply to User42

    Hi,

    I made a sample in StackBlitz based on your requirement.

    In this sample I am using the css classes of the headers to center their text.


    In the  styles.scss file I add:

    .igx-grid__th-title{
      text-align: center;
    }
    
    .igx-grid__thead-title{
        display: inline-block;
        text-align: center;
        margin-bottom: -5px
    }

    Please, take a look at this sample and let me know if you have any further questions.

Children