inject Property

Summary

Occurs when an injector is mounted or unmounted inside LEADVIEW.

Syntax
TypeScript
JavaScript
Object.defineProperty(InjectionManager.prototype, 'inject', 
   get: function(), 
   set: function(value) 
) 
inject: ; 

Property Value

A valid function defined by:

(data: InjectionArgs) => void; 
Remarks

To receive injection information from LEADVIEW, pass a valid callback to the inject property.

The inject event will then be raised every time an injector is created, and will be fired again whenever the injector is going to be removed. For more information about the injector event's data structure, refer to InjectionArgs.

Similar to the BindingManager, an inject callback should be provided before calling Viewer.run.

Example

For an example, refer to InjectionManager.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.LEADVIEW Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.