Search
ControlModifyingEventArgs Constructor
See Also
 






Initializes a new instance of the ControlModifyingEventArgs class.

Namespace: MindFusion.Common.UI
File: EventArgs.js

 Syntax

JavaScript  Copy Code

function ControlModifyingEventArgs (control, changes)

 Parameters

control

Control. The control that is being modified

changes

Object. An object containing the changed properties.

 Example

The following code handles the tooltipHiding event of a ToolTip:

JavaScript  Copy Code

var tooltip = new ui.Tooltip(window.element);
tooltip.trigger = ui.TooltipTrigger.Focus;
tooltip.position = ui.TooltipPosition.Cursor;
tooltip.text = "Map of the European Union";

tooltip.tooltipHiding.addEventListener(tooltipHidingEventHandler);


function tooltipHidingEventHandler(sender, args)
{
  if(sender == tooltip1)
      args.cancel = true;
}

 See Also