Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145615 | Jul 1,2019 11:23 AM UTC | May 28,2020 08:12 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: DateTimePicker |
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();
}
}
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.