Controls the form. It handles various tasks such as creation of marks, how marks are visually represented, keyboard controls, and field focus management.
(require("fill-form-controller"))(viewer)
Creates the form controller module.
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Core |
The core viewer to which the module will attach. |
Fires:
Listens to Events:
Example
var FillFormController = require('fill-form-controller.js');
// a generic Viewer constructor
function Viewer(opts) {
var myFillFormController = FillFormController(this);
}
Methods
destroy()
Destroys the module.