LEADTOOLS JavaScript (Leadtools.Controls)

CreateControl Method

Show in webframe
The owner of the service. Optional and can be null. This is not used by InteractiveService but can be used by the application to pass any class and extra data. ImageViewer passes this parameter in the Create method.
The events HTML element. The events of this element will be subscribed to and converted from raw mouse and touch to the common events mentioned above. It is required and must be a valid HTML element on the page.
The target HTML element. This element is the target that will be used to check if the event is triggered on its surface and all coordinates will be translated based on its position. It is required and must be a valid HTML element on the page.
Creates the interactive service.
Syntax
 function Leadtools.Controls.InteractiveService.createControl( 
   owner ,
   eventsElement ,
   targetElement 
)

Parameters

ParameterTypeDescription
ownerobjectThe owner of the service. Optional and can be null. This is not used by InteractiveService but can be used by the application to pass any class and extra data. ImageViewer passes this parameter in the Create method.
eventsElementLeadtools.Html.ElementThe events HTML element. The events of this element will be subscribed to and converted from raw mouse and touch to the common events mentioned above. It is required and must be a valid HTML element on the page.
targetElementLeadtools.Html.ElementThe target HTML element. This element is the target that will be used to check if the event is triggered on its surface and all coordinates will be translated based on its position. It is required and must be a valid HTML element on the page.

Return Value

TypeDescription
The created InteractiveService object.
See Also

Reference

InteractiveService Object
InteractiveService Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.