C# Класс Fluqi.Widget.jSpinner.Methods

The "Methods" are called after the control has been initialised. If for instance you want to change the value of a property, or invoke "some" action on the control (e.g. "open" or "close") you call the "Method" rather than through the "Options" (as Options is about the initialisation of the control).
Наследование: Core.Methods
Показать файл Открыть проект

Открытые методы

Метод Описание
Destroy ( ) : void

Removes the spinner functionality completely. This will return the element back to its pre-init state.

Disable ( ) : void

Disables the spinner.

Enable ( ) : void

Enable the spinner.

GetCulture ( ) : void

Returns [in JavaScript] the current "culture" setting.

GetDisabled ( ) : void

Returns [in JavaScript] the current "disabled" setting.

GetIcons ( ) : void

Returns [in JavaScript] the current "icons" setting.

GetIncremental ( ) : void

Returns [in JavaScript] the current "incremental" setting.

GetIsValid ( ) : void

Returns whether the Spinner's value is valid given its min, max, and step.

GetMax ( ) : void

Returns [in JavaScript] the current "max" setting.

GetMin ( ) : void

Returns [in JavaScript] the current "min" setting.

GetNumberFormat ( ) : void

Returns [in JavaScript] the current "numberFormat" setting.

GetPage ( ) : void

Returns [in JavaScript] the current "page" setting.

GetStep ( ) : void

Returns [in JavaScript] the current "step" setting.

GetValue ( ) : void

Gets the current value as a number. The value is parsed based on the numberFormat and culture options.

Methods ( Fluqi.Widget.jSpinner.Spinner spinner ) : System

Constructor

PageDown ( int value = 1 ) : void

Decrements the value by the specified number of pages, as defined by the page option. Without the parameter, a single page is decremented.

PageUp ( int value = 1 ) : void

Decrements the value by the specified number of pages, as defined by the page option. Without the parameter, a single page is decremented.

SetCulture ( string culture ) : void

Sets the culture to use for parsing and formatting the value. If null, the currently set culture in Globalize is used, see Globalize docs for available cultures. Only relevant if the SetNumberFormat option is set. Requires Globalize to be included.

SetDisabled ( bool disabled ) : void

Disables the spinner.

SetIcons ( Core downIcon, Core upIcon ) : void

Icons to use for buttons, matching an icon defined by the jQuery UI CSS Framework.

SetIcons ( string downIcon, string upIcon ) : void

Icons to use for buttons, matching an icon defined by the jQuery UI CSS Framework.

SetIncremental ( bool inc ) : void

Controls the number of steps taken when holding down a spin button. - When set to true, the stepping delta will increase when spun incessantly. - When set to false, all steps are equal (as defined by the step option).

SetIncremental ( string incMethod ) : void

Controls the number of steps taken when holding down a spin button. - Receives one parameter: the number of spins that have occurred. Must return the number of steps that should occur for the current spin.

SetMax ( int value ) : void

The maximum allowed value

SetMax ( string value ) : void

The maximum allowed value

SetMin ( int value ) : void

The minimum allowed value

SetMin ( string value ) : void

The minimum allowed value

SetNumberFormat ( string value ) : void

Format of numbers passed to Globalize, if available.

SetPage ( int value ) : void

The number of steps to take when paging via the pageUp/pageDown methods.

SetStep ( int value ) : void

The size of the step to take when spinning via buttons or via the stepUp()/stepDown() methods. The element's step attribute is used if it exists and the option is not explicitly set.

SetStep ( string value ) : void

The size of the step to take when spinning via buttons or via the stepUp()/stepDown() methods. The element's step attribute is used if it exists and the option is not explicitly set.

SetValue ( int value ) : void

Sets the value

SetValue ( string value ) : void

Sets the value

StepDown ( int value = 1 ) : void

Decrements the value by the specified number of steps. Without the parameter, a single step is decremented. If the resulting value is above the max, below the min, or reuslts in a step mismatch, the value will be adjusted to the closest valid value.

StepUp ( int value = 1 ) : void

Increments the value by the specified number of steps. Without the parameter, a single step is incremented. If the resulting value is above the max, below the min, or reuslts in a step mismatch, the value will be adjusted to the closest valid value.

Widget ( ) : void

Returns a jQuery object containing the generated wrapper.

Описание методов

Destroy() публичный Метод

Removes the spinner functionality completely. This will return the element back to its pre-init state.
public Destroy ( ) : void
Результат void

Disable() публичный Метод

Disables the spinner.
public Disable ( ) : void
Результат void

Enable() публичный Метод

Enable the spinner.
public Enable ( ) : void
Результат void

GetCulture() публичный Метод

Returns [in JavaScript] the current "culture" setting.
public GetCulture ( ) : void
Результат void

GetDisabled() публичный Метод

Returns [in JavaScript] the current "disabled" setting.
public GetDisabled ( ) : void
Результат void

GetIcons() публичный Метод

Returns [in JavaScript] the current "icons" setting.
public GetIcons ( ) : void
Результат void

GetIncremental() публичный Метод

Returns [in JavaScript] the current "incremental" setting.
public GetIncremental ( ) : void
Результат void

GetIsValid() публичный Метод

Returns whether the Spinner's value is valid given its min, max, and step.
public GetIsValid ( ) : void
Результат void

GetMax() публичный Метод

Returns [in JavaScript] the current "max" setting.
public GetMax ( ) : void
Результат void

GetMin() публичный Метод

Returns [in JavaScript] the current "min" setting.
public GetMin ( ) : void
Результат void

GetNumberFormat() публичный Метод

Returns [in JavaScript] the current "numberFormat" setting.
public GetNumberFormat ( ) : void
Результат void

GetPage() публичный Метод

Returns [in JavaScript] the current "page" setting.
public GetPage ( ) : void
Результат void

GetStep() публичный Метод

Returns [in JavaScript] the current "step" setting.
public GetStep ( ) : void
Результат void

GetValue() публичный Метод

Gets the current value as a number. The value is parsed based on the numberFormat and culture options.
public GetValue ( ) : void
Результат void

Methods() публичный Метод

Constructor
public Methods ( Fluqi.Widget.jSpinner.Spinner spinner ) : System
spinner Fluqi.Widget.jSpinner.Spinner Spinner object to call
Результат System

PageDown() публичный Метод

Decrements the value by the specified number of pages, as defined by the page option. Without the parameter, a single page is decremented.
public PageDown ( int value = 1 ) : void
value int
Результат void

PageUp() публичный Метод

Decrements the value by the specified number of pages, as defined by the page option. Without the parameter, a single page is decremented.
public PageUp ( int value = 1 ) : void
value int
Результат void

SetCulture() публичный Метод

Sets the culture to use for parsing and formatting the value. If null, the currently set culture in Globalize is used, see Globalize docs for available cultures. Only relevant if the SetNumberFormat option is set. Requires Globalize to be included.
public SetCulture ( string culture ) : void
culture string
Результат void

SetDisabled() публичный Метод

Disables the spinner.
public SetDisabled ( bool disabled ) : void
disabled bool
Результат void

SetIcons() публичный Метод

Icons to use for buttons, matching an icon defined by the jQuery UI CSS Framework.
public SetIcons ( Core downIcon, Core upIcon ) : void
downIcon Core Icon to use for the down
upIcon Core Icon to use for the up
Результат void

SetIcons() публичный Метод

Icons to use for buttons, matching an icon defined by the jQuery UI CSS Framework.
public SetIcons ( string downIcon, string upIcon ) : void
downIcon string Icon to use for the down
upIcon string Icon to use for the up
Результат void

SetIncremental() публичный Метод

Controls the number of steps taken when holding down a spin button. - When set to true, the stepping delta will increase when spun incessantly. - When set to false, all steps are equal (as defined by the step option).
public SetIncremental ( bool inc ) : void
inc bool
Результат void

SetIncremental() публичный Метод

Controls the number of steps taken when holding down a spin button. - Receives one parameter: the number of spins that have occurred. Must return the number of steps that should occur for the current spin.
public SetIncremental ( string incMethod ) : void
incMethod string
Результат void

SetMax() публичный Метод

The maximum allowed value
public SetMax ( int value ) : void
value int The maximum value
Результат void

SetMax() публичный Метод

The maximum allowed value
public SetMax ( string value ) : void
value string /// If Globalize is included, the min option can be passed as a string which will be parsed based on the /// numberFormat and culture options; otherwise it will fall back to the native parseFloat() method. ///
Результат void

SetMin() публичный Метод

The minimum allowed value
public SetMin ( int value ) : void
value int The minimum value
Результат void

SetMin() публичный Метод

The minimum allowed value
public SetMin ( string value ) : void
value string /// If Globalize is included, the min option can be passed as a string which will be parsed based on the /// numberFormat and culture options; otherwise it will fall back to the native parseFloat() method. ///
Результат void

SetNumberFormat() публичный Метод

Format of numbers passed to Globalize, if available.
public SetNumberFormat ( string value ) : void
value string /// Most common are "n" for a decimal number and "C" for a currency value. /// Also see the culture option. ///
Результат void

SetPage() публичный Метод

The number of steps to take when paging via the pageUp/pageDown methods.
public SetPage ( int value ) : void
value int New value
Результат void

SetStep() публичный Метод

The size of the step to take when spinning via buttons or via the stepUp()/stepDown() methods. The element's step attribute is used if it exists and the option is not explicitly set.
public SetStep ( int value ) : void
value int The size of the step
Результат void

SetStep() публичный Метод

The size of the step to take when spinning via buttons or via the stepUp()/stepDown() methods. The element's step attribute is used if it exists and the option is not explicitly set.
public SetStep ( string value ) : void
value string /// If Globalize is included, the step option can be passed as a string which will be parsed based on /// the numberFormat and culture options, otherwise it will fall back to the native parseFloat. ///
Результат void

SetValue() публичный Метод

Sets the value
public SetValue ( int value ) : void
value int The value to set
Результат void

SetValue() публичный Метод

Sets the value
public SetValue ( string value ) : void
value string The value is parsed based on the numberFormat and culture options.
Результат void

StepDown() публичный Метод

Decrements the value by the specified number of steps. Without the parameter, a single step is decremented. If the resulting value is above the max, below the min, or reuslts in a step mismatch, the value will be adjusted to the closest valid value.
public StepDown ( int value = 1 ) : void
value int
Результат void

StepUp() публичный Метод

Increments the value by the specified number of steps. Without the parameter, a single step is incremented. If the resulting value is above the max, below the min, or reuslts in a step mismatch, the value will be adjusted to the closest valid value.
public StepUp ( int value = 1 ) : void
value int
Результат void

Widget() публичный Метод

Returns a jQuery object containing the generated wrapper.
public Widget ( ) : void
Результат void