BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
public startTimestart = "12:00 AM";
public startTimeend = "8:00 AM";
public endTimestart = "8:30 PM";
public onOpen(args) {
if ((<any>this.myDate).popupObject) {
let elementCollection: any = (<any>this.myDate).popupObject.element.querySelectorAll(".e-datetimepicker.e-popup .e-list-parent.e-ul li");
let flag: boolean = false;
for (var i = 0; i < elementCollection.length; i++) {
let value:string = elementCollection[i].getAttribute('data-value');
if (this.startTimestart === value || this.startTimeend === value || this.endTimestart === value) { // Check the component value with timepicker li element value
flag = !flag;
}
if (flag) {
elementCollection[i].remove();
}
}
}
} |