Skip to content

override styles single datepicker

kekeh edited this page May 30, 2019 · 3 revisions
<input angular-mydatepicker [(ngModel)]="model" [options]="myDatePickerOptions" 
    #dp="angular-mydatepicker">
import {IAngularMyDpOptions} from 'angular-mydatepicker';

export class MyApp {

    /*
    Change color of the navigate buttons to red.
    */
    myDatePickerOptions: IAngularMyDpOptions = {
        stylesData: {
            styles: `
                .myDpIconLeftArrow,
                .myDpIconRightArrow {
                    color: red;
                }  
            `
        }
        // other options here
    }

    constructor() {}
}