Search
VirtualKeyboard.create Method
See Also
 






Creates and initializes a new VirtualKeyboard on the specified DOM element. This method is static and can be called without creating an instance of the class.

Namespace: MindFusion.Keyboard
File: VirtualKeyboard.js

 Syntax

JavaScript  Copy Code

function create (element)

 Parameters

element

Object. The DOM element that the keyboard should be attached to.

 Return Value

VirtualKeyboard. A VirtualKeyboard object that represents the newly created keyboard.

 Example

The following code creates a new JsKeyboard using an HTML Canvas element that was declared in a web page used by the application.

JavaScript  Copy Code
var vk = VirtualKeyboard.create(
  document.getElementById("keyboard"));

 See Also