NumberEdit.Value

Syntax

Value:Number

Description

The Value property sets numeric value for the component.

Comments

If property value is not defined, the editor box shows the value 0. If the value 0 does not fall into the range between minimum and maximum value, the nearest valid value is set into the input line. When the component loses focus, the minimum acceptable value is set.

Example

To execute the example, connect links to the PP.js library and the PP.css visual styles table on the HTML page. Create a value editor named NE.

<script  type="text/javascript">

    NE = new PP.Ui.NumberEdit({//Create an instance of the NumberEdit component

            ParentNode: document.getElementById("NE1"),//ID contained in the tag div

            Width: "170px",

            Height: "21px",

            Value: 2000//Set value

    });

</script>

After executing the example a value editor with predefined value is placed to the HTML page:

Seebsp;also:

NumberEdit