









|
private onCreated() {
this.setTooltip();
}
private onActionComplete(args) {
if (["dateNavigate", "viewNavigate"].indexOf(args.requestType) > -1)
this.setTooltip();
}
private setTooltip() {
// Setting up the position to the tooltip
((this.scheduleObj.element as EJ2Instance).ej2_instances[2] as Tooltip).position = "RightCenter";
// Disable the mouse trail
((this.scheduleObj.element as EJ2Instance).ej2_instances[2] as Tooltip).mouseTrail = false;
} |

|
export class AppComponent {
@ViewChild("scheduleObj", { static: false }) public scheduleObj: ScheduleComponent;
public isInitialRendering: Boolean = true;
private onDataBound() {
if (this.isInitialRendering) {
this.isInitialRendering = false;
this.setTooltip();
}
}
private onActionComplete(args) {
if (["dateNavigate", "viewNavigate"].indexOf(args.requestType) > -1)
this.setTooltip();
}
private setTooltip() {
// Setting up the position to the tooltip
((this.scheduleObj.element as EJ2Instance)
.ej2_instances[2] as Tooltip).position = "RightCenter";
// Disable the mouse trail
((this.scheduleObj.element as EJ2Instance)
.ej2_instances[2] as Tooltip).mouseTrail = false;
}
} |
|
/* Changing the border color of the tooltip */
.e-tooltip-wrap.e-popup {
background-color: #616161;
border: 10px solid #9c27b0 !important;
} |