I am new to JHipster and learning how it structured and customized.
Not globally, but in one component view only I want to know where to modify the generated date-picker, in this case to only allow selecting a date that falls on a Monday.
The generated component html:
<div class="form-group">
<label class="form-control-label" jhiTranslate="deploymentApp.plan.startDate" for="field_startDate">Start Date</label>
<div class="d-flex">
<input id="field_startDate" type="datetime-local" class="form-control" name="startDate" formControlName="startDate" placeholder="YYYY-MM-DD HH:mm"/>
</div>
</div>
And from the component.ts. The only date related code block:
ngOnInit(): void {
this.activatedRoute.data.subscribe(({ plan }) => {
if (!plan.id) {
const today = moment().startOf('day');
plan.startDate = today;
}
this.updateForm(plan);
this.areaService.query().subscribe((res: HttpResponse<IArea[]>) => (this.areas = res.body || []));
});
}
In the Javascript/HTML this would have be achieved with java script inside the script tags.
Where is the datepicker customised in JHipster?