MindFusion.UI for WebForms Programmer's Guide

NumericUpDown.set_autoReverse Method

See Also
 



Sets a value indicating whether the value should auto reverse when going below minimum or above maximum.

Namespace: MindFusion.UI.Web
Assembly: NumericUpDown.js

 Syntax

JavaScript  Copy Code

function set_autoReverse (value)

 Parameters

value

Type: Boolean
True if the value should auto reverse, otherwise false.

 Example

If the current value equals 100 and auto reverse is enabled (all other properties are set to default), incrementing the value will change it to 0 (the minimum set).

JavaScript  Copy Code

// enable auto reverse
numericUpDown.set_autoReverse(true);
numericUpDown.set_value(100);
numericUpDown.increment();

// value will now be 0;
alert(numericUpDown.get_value());

 See Also