<ejs-multiselect id='localData' #local [dataSource]='countries' [fields]='localFields' [placeholder]='localWaterMark' (open)="onOpen($event)" ></ejs-multiselect> |
onOpen(event)
{
if(! (this.mulObj as any).popupObj.element.querySelectorAll(".e-list-item")[3].classList.contains("e-hide"))
{
(this.mulObj as any).popupObj.element.querySelectorAll(".e-list-item")[3].classList.add("e-hide")
}
} |
<style>
.e-hide
{
opacity:0.7;
pointer-events:none;
}
</style> |
<ejs-multiselect id='localData' #local [dataSource]='countries' [fields]='localFields' [placeholder]='localWaterMark' (open)="onOpen($event)" ></ejs-multiselect> |
onOpen(event)
{
if(! (this.mulObj as any).popupObj.element.querySelectorAll(".e-list-item")[3].classList.contains("e-hide"))
{
(this.mulObj as any).popupObj.element.querySelectorAll(".e-list-item")[3].classList.add("e-hide")
}
} |
<style>
.e-hide
{
opacity:0.7;
pointer-events:none;
}
</style> |
onSelect(args: SelectEventArgs){
if (args.item.classList.contains('e-hide')) {
args.cancel = true;
}
} |