2

I want to change the css class property value dynamically. On below code 'color' is the variable that I want to pass to the styles.

    @Component({
    selector: 'app-gridmaker-component',
    templateUrl: './gridmaker-component.component.html',
    styles: [`
    ::ng-deep .dx-datagrid .dx-row-alt > td {
        background-color: color!important;  /* color is the variable */
    }
    `]

})

Thanks is advance.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.