Attach control event handlers.
Namespace: MindFusion.Common
File: Control.js
SyntaxJavaScript
Copy Code
|
|---|
function attach () |
RemarksThe attach method attaches the event handlers of a UI element. It is used when creating UI controls dynamically in code.
ExampleThe following code uses the attach method in a method that creates a ToolStrip programmatically:
JavaScript
Copy Code
|
|---|
function loadChatWindow(sender) button = new ui.ToolStripItem(ui.ToolStripItemType.Icon); |
See Also