Object PmfNumber
Description:
This object represents one form item of the type: Integer or real number input.
Properties and methods of this object:
EditType | Editing type |
Min | Minimum value |
Max | Maximum value |
StepSize | Setting of the step the value is increased/decreased by by clicking the mouse the spin buttons while editing |
Subtype | Specifies whether the object displays/inputs integer or real number |
Value | Pmf object value |
ValueHorzAlign | The way of horizontal number alignment |
Properties and methods that are common to all objects of the PmfObject type:
Events:
onEditAccept | Is triggered after the editing is finished and the edited value is saved |
onFocus | Is triggered if the Pmf object gets or loses focus |
Example1:
Script creates one form item. It is presumed that the oForm object already exists.
JavaScriptSelect and copy to clipboard
var oNmb = oForm.CreateItem("number", "id_nmb");
oNmb.Value = 5;