Skip to content

Commit

Permalink
add input for innerClockFaceSize
Browse files Browse the repository at this point in the history
  • Loading branch information
micdenny committed Mar 15, 2021
1 parent 73979e1 commit ebe37df
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
[minTime]="minTime"
[maxTime]="maxTime"
[format]="format"
[innerClockFaceSize]="innerClockFaceSize"
(hourSelected)="onHourSelected($event)"></ngx-material-timepicker-24-hours-face>
<ng-template #ampmHours>
<ngx-material-timepicker-12-hours-face
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class NgxMaterialTimepickerContainerComponent implements OnInit, OnDestro
minTime: DateTime;
maxTime: DateTime;
time: string;
innerClockFaceSize: number;

timepickerClass: string;
theme: NgxMaterialTimepickerTheme;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ngx-material-timepicker-face [selectedTime]="selectedHour" [faceTime]="hoursList" [format]="format"
<ngx-material-timepicker-face [selectedTime]="selectedHour" [innerClockFaceSize]="innerClockFaceSize" [faceTime]="hoursList" [format]="format"
(timeChange)="hourChange.next($event)"
(timeSelected)="onTimeSelected($event)"></ngx-material-timepicker-face>
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class NgxMaterialTimepickerFaceComponent implements AfterViewInit, OnChan
timeUnit = TimeUnit;

isClockFaceDisabled: boolean;
innerClockFaceSize = 85;
@Input() innerClockFaceSize = 85;

@Input() faceTime: ClockFaceTime[];
@Input() selectedTime: ClockFaceTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export class NgxMaterialTimepickerHoursFace {
@Input() minTime: DateTime;
@Input() maxTime: DateTime;
@Input() format: number;
@Input() innerClockFaceSize: number;

@Output() hourChange = new EventEmitter<ClockFaceTime>();
@Output() hourSelected = new EventEmitter<number>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ export interface TimepickerConfig {
timepickerClass: string;
theme: NgxMaterialTimepickerTheme;
timepickerBaseRef: TimepickerRef;
innerClockFaceSize: number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class NgxMaterialTimepickerComponent implements TimepickerRef {
@Input() editableHintTmpl: TemplateRef<Node>;
@Input() confirmBtnTmpl: TemplateRef<Node>;
@Input('ESC') isEsc = true;
@Input() innerClockFaceSize = 85;
@Input() enableKeyboardInput: boolean;
@Input() preventOverlayClick: boolean;
@Input() disableAnimation: boolean;
Expand Down Expand Up @@ -133,7 +134,8 @@ export class NgxMaterialTimepickerComponent implements TimepickerRef {
hoursOnly: this.hoursOnly,
theme: this.theme || this._ngxMaterialTimepickerTheme,
timepickerClass: this.timepickerClass,
inputElement: this.inputElement
inputElement: this.inputElement,
innerClockFaceSize: this.innerClockFaceSize
});
this.opened.next();
this.subscribeToEvents();
Expand Down

0 comments on commit ebe37df

Please sign in to comment.