C# Class Fluqi.Widget.jSpinner.Options

A set of properties to apply to a set of jQuery UI Spinner.
Properties not yet supported:
Inheritance: Core.Options
显示文件 Open project: toepoke/Fluqi

Public Methods

Method Description
Options ( Fluqi.Widget.jSpinner.Spinner spinner ) : System

Constructor

SetCulture ( string culture ) : Options

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 ) : Options

Disables the spinner.

SetIcons ( Core downIcon, Core upIcon ) : Options

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

SetIcons ( string downIcon, string upIcon ) : Options

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

SetIncremental ( bool inc ) : Options

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 ) : Options

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 ) : Options

The maximum allowed value

SetMax ( string value ) : Options

The maximum allowed value

SetMin ( int value ) : Options

The minimum allowed value

SetMin ( string value ) : Options

The minimum allowed value

SetNumberFormat ( string value ) : Options

Format of numbers passed to Globalize, if available.

SetPage ( int value ) : Options

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

SetStep ( int step ) : Options

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 step ) : Options

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.

Method Details

Options() public method

Constructor
public Options ( Fluqi.Widget.jSpinner.Spinner spinner ) : System
spinner Fluqi.Widget.jSpinner.Spinner Spinner to configure options of
return System

SetCulture() public method

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 ) : Options
culture string
return Options

SetDisabled() public method

Disables the spinner.
public SetDisabled ( bool disabled ) : Options
disabled bool
return Options

SetIcons() public method

Icons to use for buttons, matching an icon defined by the jQuery UI CSS Framework.
public SetIcons ( Core downIcon, Core upIcon ) : Options
downIcon Core Icon to use for the down
upIcon Core Icon to use for the up
return Options

SetIcons() public method

Icons to use for buttons, matching an icon defined by the jQuery UI CSS Framework.
public SetIcons ( string downIcon, string upIcon ) : Options
downIcon string Icon to use for the down
upIcon string Icon to use for the up
return Options

SetIncremental() public method

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 ) : Options
inc bool
return Options

SetIncremental() public method

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 ) : Options
incMethod string
return Options

SetMax() public method

The maximum allowed value
public SetMax ( int value ) : Options
value int The maximum value
return Options

SetMax() public method

The maximum allowed value
public SetMax ( string value ) : Options
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. ///
return Options

SetMin() public method

The minimum allowed value
public SetMin ( int value ) : Options
value int The minimum value
return Options

SetMin() public method

The minimum allowed value
public SetMin ( string value ) : Options
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. ///
return Options

SetNumberFormat() public method

Format of numbers passed to Globalize, if available.
public SetNumberFormat ( string value ) : Options
value string /// Most common are "n" for a decimal number and "C" for a currency value. /// Also see the culture option. ///
return Options

SetPage() public method

The number of steps to take when paging via the pageUp/pageDown methods.
public SetPage ( int value ) : Options
value int New value
return Options

SetStep() public method

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 step ) : Options
step int The size of the step
return Options

SetStep() public method

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 step ) : Options
step 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. ///
return Options