state Property

Summary

The state of the injector.

Syntax
TypeScript
JavaScript
Object.defineProperty(InjectionArgs.prototype, 'state', 
   get: function(), 
   set: function(value) 
) 

Property Value

Describes the current state of the injector.

Remarks

Inject or remove custom UI components based on the value of state.

If the value is InjectionState.mounting, then the injector has been mounted into the DOM.

If the value is InjectionState.unmounting, then the injector is about to be removed from the DOM. Any cleanup needed for custom components should be called here to prevent memory leaks.

Example

For an example, refer to InjectionManager.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.LEADVIEW Assembly