smallDelta - Small Delta

Specifies the value change when the user clicks an up or down arrow on the screen or an up or down key.

Category

data

Syntax

smallDelta="n"

Usage

In Design mode, click All Properties and look for smallDelta under data.

This property defaults to 1.

Examples

This example consists of a Number Spinner bound to a scoped variable, a button for submitting the page, and a computed field that displays the value of the scoped variable. Initially the spinner has a value of 0.1. The arrows adjust the spinner in increments of 0.1. The PgUp and PgDn keys adjust the spinner in increments of 1.0.
<xp:table>
	<xp:tr>
		<xp:td>Number Spinner</xp:td>
		<xp:td>
			<xe:djNumberSpinner id="djNumberSpinner1"
				value="#{sessionScope.djNumberSpinner1}" defaultValue="0.1"
				smallDelta="0.1" largeDelta="1">
			</xe:djNumberSpinner>
		</xp:td>
	</xp:tr>
	<xp:tr>
		<xp:td>
			<xp:button value="submit" id="button1">
				<xp:eventHandler event="onclick" submit="true" refreshMode="complete" immediate="false" save="true">
			</xp:eventHandler></xp:button>
		</xp:td>
		<xp:td></xp:td>
	</xp:tr>
	<xp:tr>
		<xp:td>Value</xp:td>
		<xp:td><xp:text escape="true" id="computedField1" value="#{sessionScope.djNumberSpinner1}"></xp:text></xp:td>
	</xp:tr>
</xp:table>