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://es.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
No Data
Reply
  • 845
    Offline posted

    Hello,

    The cellClassses property works a lot like the ngClass directive. It expects an object where the keys are the style classes that are to be applied and the values are either simple Boolean values or a callback that returns a Boolean value.

    You can check out this sample where you can see it in action.

    In your case it will be [cellClasses]="{'center-and-middle-text': true}"

Children
No Data