How can I change the icon, the calendar and the selector?

0

Please how can I change the icons in these 2 tools?

P-calendar, Datepicker

<label fxFlex="20" class="date-picker_format">
            <p-calendar [(ngModel)]="value" [showIcon]="true"></p-calendar>
          </label>

Md-select

 <md-select fxFlex="20" class="input_select"
             [ngModelOptions]="{standalone: true}"
             [(ngModel)]="timeSelected">
    <md-option *ngFor="let timeSel of time" [value]="timeSel">{{timeSel.value}}</md-option>
  </md-select>
    
asked by Enric 09.04.2018 в 18:16
source

1 answer

0

You are using an external library. So from my point of view the only way to modify the calendar icon would be by accessing the code of the library and modifying it.

The problem with this is that if you run a new npm-install or update the library you will lose that change.

The solution to this would be to make a wrapper from the library. That is, copy it to your project outside of node_modules and modify it to your liking and then import that component from your local project and not from the library.

    
answered by 10.04.2018 в 14:39