C# Class 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).
Inheritance: Core.Methods
Afficher le fichier Open project: toepoke/Fluqi

Méthodes publiques

Méthode Description
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.

Method Details

Destroy() public méthode

Removes the spinner functionality completely. This will return the element back to its pre-init state.
public Destroy ( ) : void
Résultat void

Disable() public méthode

Disables the spinner.
public Disable ( ) : void
Résultat void

Enable() public méthode

Enable the spinner.
public Enable ( ) : void
Résultat void

GetCulture() public méthode

Returns [in JavaScript] the current "culture" setting.
public GetCulture ( ) : void
Résultat void

GetDisabled() public méthode

Returns [in JavaScript] the current "disabled" setting.
public GetDisabled ( ) : void
Résultat void

GetIcons() public méthode

Returns [in JavaScript] the current "icons" setting.
public GetIcons ( ) : void
Résultat void

GetIncremental() public méthode

Returns [in JavaScript] the current "incremental" setting.
public GetIncremental ( ) : void
Résultat void

GetIsValid() public méthode

Returns whether the Spinner's value is valid given its min, max, and step.
public GetIsValid ( ) : void
Résultat void

GetMax() public méthode

Returns [in JavaScript] the current "max" setting.
public GetMax ( ) : void
Résultat void

GetMin() public méthode

Returns [in JavaScript] the current "min" setting.
public GetMin ( ) : void
Résultat void

GetNumberFormat() public méthode

Returns [in JavaScript] the current "numberFormat" setting.
public GetNumberFormat ( ) : void
Résultat void

GetPage() public méthode

Returns [in JavaScript] the current "page" setting.
public GetPage ( ) : void
Résultat void

GetStep() public méthode

Returns [in JavaScript] the current "step" setting.
public GetStep ( ) : void
Résultat void

GetValue() public méthode

Gets the current value as a number. The value is parsed based on the numberFormat and culture options.
public GetValue ( ) : void
Résultat void

Methods() public méthode

Constructor
public Methods ( Fluqi.Widget.jSpinner.Spinner spinner ) : System
spinner Fluqi.Widget.jSpinner.Spinner Spinner object to call
Résultat System

PageDown() public méthode

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
Résultat void

PageUp() public méthode

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
Résultat void

SetCulture() public méthode

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
Résultat void

SetDisabled() public méthode

Disables the spinner.
public SetDisabled ( bool disabled ) : void
disabled bool
Résultat void

SetIcons() public méthode

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
Résultat void

SetIcons() public méthode

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
Résultat void

SetIncremental() public méthode

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
Résultat void

SetIncremental() public méthode

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
Résultat void

SetMax() public méthode

The maximum allowed value
public SetMax ( int value ) : void
value int The maximum value
Résultat void

SetMax() public méthode

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. ///
Résultat void

SetMin() public méthode

The minimum allowed value
public SetMin ( int value ) : void
value int The minimum value
Résultat void

SetMin() public méthode

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. ///
Résultat void

SetNumberFormat() public méthode

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. ///
Résultat void

SetPage() public méthode

The number of steps to take when paging via the pageUp/pageDown methods.
public SetPage ( int value ) : void
value int New value
Résultat void

SetStep() public méthode

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
Résultat void

SetStep() public méthode

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. ///
Résultat void

SetValue() public méthode

Sets the value
public SetValue ( int value ) : void
value int The value to set
Résultat void

SetValue() public méthode

Sets the value
public SetValue ( string value ) : void
value string The value is parsed based on the numberFormat and culture options.
Résultat void

StepDown() public méthode

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
Résultat void

StepUp() public méthode

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
Résultat void

Widget() public méthode

Returns a jQuery object containing the generated wrapper.
public Widget ( ) : void
Résultat void