\Hazaar\View\Widgets
NumberInput

Number input widget.

Tags

Since

1.1

Summary
Methods Properties Constants
max
min
val
No constants
Properties
Inherited
$element
$element
Inherited
$name
$name
Inherited
$script
$script
Methods
__construct()
__construct($name, $value = null)

Initialise a NumberInput widget

Parameters

$name

No description

$valueint

The initial value of the widget.

clearDecimal()
clearDecimal()

Clears the value.

decimal()
decimal($value = null) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the input’s number.

Parameters

$valueint

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
decimalDigits()
decimalDigits($value) : \\Hazaar\\Widgets\\NumberInput

Indicates the number of decimal places to use in numeric values.

Parameters

$valueint

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
decimalSeparator()
decimalSeparator($value) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the char to use as the decimal separator in numeric values.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
digits()
digits($value) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the digits in the input

Parameters

$valueint

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
getDecimal()
getDecimal()

Gets the value.

groupSeparator()
groupSeparator($value) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the string that separates groups of digits to the left of the decimal in numeric values.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
groupSize()
groupSize($value) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the number of digits in each group to the left of the decimal in numeric values.

Parameters

$valueint

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
inputMode()
inputMode($value) : \\Hazaar\\Widgets\\NumberInput

Sets the input mode. Possible values: ‘advanced’ and ‘simple’. In the advanced mode, the number input behavior resembles a masked input with numeric mask. In the simple mode, the widget works as a normal textbox, but restricts the user’s input to numbers.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
inputValue()
inputValue($value = null)

Gets or sets the value including the formatting characters such as group and decimal separators.

Parameters

$valuestring

The value to set

max()
max($value = null) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the input’s maximum value.

Parameters

$valueint

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
min()
min($value = null) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the input’s minimum value.

Parameters

$valueint

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
negativeSymbol()
negativeSymbol($value) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the string to use as negative symbol.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
onChange()
onChange($code)

This event is triggered when the value is changed and the control’s focus is lost.

Parameters

$codestring

The JavaScript code to execute when the event is triggered

onTextchanged()
onTextchanged($code)

This event is triggered when the user entered entered a text.

Parameters

$codestring

The JavaScript code to execute when the event is triggered

onValuechanged()
onValuechanged($code)

This event is triggered after value is changed.

Parameters

$codestring

The JavaScript code to execute when the event is triggered

promptChar()
promptChar($value) : \\Hazaar\\Widgets\\NumberInput

Sets the prompt char displayed when an editable char is empty. Possible Values: “_”; “?”; “#”.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
readOnly()
readOnly($value) : \\Hazaar\\Widgets\\NumberInput

Gets or Sets the readOnly state of the input.

Parameters

$value\Hazaar\View\Widgets\bool

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
setDecimal()
setDecimal($value)

Sets the value.

Parameters

$valuestring

The value to set

spinButtons()
spinButtons($value) : \\Hazaar\\Widgets\\NumberInput

Shows or hides the spin buttons.

Parameters

$value\Hazaar\View\Widgets\bool

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
spinButtonsStep()
spinButtonsStep($value) : \\Hazaar\\Widgets\\NumberInput

Sets the increase/decrease step.

Parameters

$valueint

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
spinButtonsWidth()
spinButtonsWidth($value) : \\Hazaar\\Widgets\\NumberInput

Sets the width of the spin buttons.

Parameters

$valueint

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
spinMode()
spinMode($value) : \\Hazaar\\Widgets\\NumberInput

Sets the spin mode. Possible values: ‘none’, ‘advanced’ and ‘simple’. In the advanced mode, the value is increased depending on the caret’s position. The ‘none’ mode specifies that the spin behavior is disabled.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
symbol()
symbol($value) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the string to use as currency or percentage symbol.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
symbolPosition()
symbolPosition($value) : \\Hazaar\\Widgets\\NumberInput

Gets or sets the position of the symbol in the input.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
textAlign()
textAlign($value) : \\Hazaar\\Widgets\\NumberInput

Sets the alignment.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput
val()
val($value = null)

Gets or sets the value.

Parameters

$valuestring

The value to set

validationMessage()
validationMessage($value) : \\Hazaar\\Widgets\\NumberInput

Sets the validation message of the jqxNumberInput. This message is displayed when the value is not in the min – max range.

Parameters

$valuestring

The value to set

Returns

\\Hazaar\\Widgets\\NumberInput