Properties
Private _element
_element: HTMLElement = null
Private _propertyChangedListeners
_propertyChangedListeners: Array<function> = new Array<(propertyName: string, value: any) => void>()
Private disposables
disposables: Array<object> = new Array<{ dispose(): void}>()
Static Private propertyRegex
propertyRegex: RegExp = /return ([_a-zA-Z0-9]+)(\.([_a-zA-Z0-9]+))*;?/
The
Controlclass is the base class for all content generating classes. Everything that gets instantiated by theControlManagerhasControlas its base.Controlis an abstract class that provides basic access in to the Orange render process via theonElementSet()andonControlCreated()methods.The
onElementSet()is called when theelementproperty gets assigned by theControlManager; when theonElementSet()method gets called whe know that the control implementing it has been assigned anHTMLElementand it is safe to start interacting with theelementproperty.The
onControlCreated()method is called by theControlManagerwhen a control is finalized; all current child controls have been created (theironControlCreated()has been executed).Se ControlManager for more information on the creation process of controls.