Phone API Reference - UI Extended - genericForm

genericForm

Creates a form containing various input objects. Can be used to display a settings page for an app, for example. This is a useful shortcut for creating a page with many elements, without having to manually define and position each element.

 

Require Extended Library: 

var genericForm = require('genericForm');

Methods

Name 

Description 

Name 

Description 

genericForm.getInputWidget

Returns the input object.

genericForm.getValue

Gets the value of the specified input. Can only retrieve a value on the most recently active form that is defined by the last time generifForm.show() was called.

genericForm.setValue

Sets the value of a specified object based on the 'setting' value you gave that object. Note: the form must be shown before setValue can be called.

genericForm.show

Clears anything currently on the screen and shows the form.

Return to Documentation Home I Return to Sangoma Support