NumberEdit.Suffix

Syntax

Suffix: String;

Description

The Suffix property sets a suffix for the component value.

Comments

Use JSON or the setSuffix method to get the property value.

Example

To execute the example, create an HTML page and perform the following operations:

1. Add links to the PP.css and PP.js files.

2. Within the <body> tag place a block with the ID NE1:

<div id="NE1"></div>

3. Next to the page within the <body> tag add a script that creates a value editor showing prefix and suffix:

<script type="text/javascript">
// Create an instance of the NumberEdit component
var ne = new PP.Ui.NumberEdit({
    ParentNode: document.getElementById("NE1"), // Container for the component
    Width: "170px",
    Height: "21px",
    Value: 22, // Set value
    Suffix: " °C", // Suffix
    Prefix: "t " // Prefix
});
</script>

After executing the example the HTML page contains a value editor. Value of the editor has the t prefix and the suffix °C:

See also:

NumberEdit