Search
Control.loaded Property
See Also
 






Gets a value indicating whether this control is loaded and ready for interaction.

Namespace: MindFusion.Common
File: Control.js

 Syntax

JavaScript  Copy Code

get loaded() {}

 Property Value

Boolean. True if the control is loaded, otherwise false.

 Example

The following code disables drag of items in a ToolStrip  if the menu is visible e.g. loaded:

JavaScript  Copy Code
// This is the handler function of the toolstrip.itemDragStart event.
// Drag operations will be cancelled if the item to be dragged is the templated item
// or if the menu is currently visible.
function itemDragStart(sender, args)
{
 if (sender.type == ui.ToolStripItemType.Default)
  args.cancel = true;
 if (menu.loaded)
  args.cancel = true;
}

 See Also