Difference between revisions of "Spinner"

From Lianjapedia
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
 
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
 +
 +
====Description====
 +
Shown below in a standalone [[Form]].  Click the image to see in a [[Custom_Sections_and_Gadgets|Custom Section]] in a Lianja [[Page Attributes|Page]].
 +
 +
[[{{ns:file}}:spinner.png|link={{filepath:spinner_cs.png}}|Spinner]]
 +
 +
Spinner is a numeric [[Textbox]] control with increment/decrement controls
  
 
====Properties====
 
====Properties====
Line 5: Line 12:
 
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following:
 
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Property
 
!width="20%"|Property
 
!Access (R/RW)
 
!Access (R/RW)
 
!Value
 
!Value
 
!width="50%"|Description
 
!width="50%"|Description
|-
 
|Text
 
|RW
 
|Character
 
|Object's numeric value as character
 
|-
 
|Value
 
|RW
 
|Numeric
 
|Object's numeric value
 
 
|-
 
|-
 
|Alignment
 
|Alignment
Line 25: Line 22:
 
|Numeric
 
|Numeric
 
|Alignment: 0 = left, 1 = right, 2 = center
 
|Alignment: 0 = left, 1 = right, 2 = center
 +
|-
 +
|valign="top"|Increment
 +
|valign="top"|RW
 +
|valign="top"|Numeric
 +
|valign="top"|Amount value is incremented or decremented when arrows are clicked
 
|-
 
|-
 
|KeyboardHighValue
 
|KeyboardHighValue
Line 35: Line 37:
 
|Numeric
 
|Numeric
 
|Minimum value using keyboard
 
|Minimum value using keyboard
 +
|-
 +
|valign="top"|Prefix
 +
|valign="top"|RW
 +
|valign="top"|Character
 +
|valign="top"|Prefix displayed before value, e.g. currency symbol
 +
|-
 +
|Readonly
 +
|RW
 +
|Boolean
 +
|Whether object is read only
 
|-
 
|-
 
|SpinnerHighValue
 
|SpinnerHighValue
Line 45: Line 57:
 
|Numeric
 
|Numeric
 
|Minimum value using arrows
 
|Minimum value using arrows
|-
 
|valign="top"|Increment
 
|valign="top"|RW
 
|valign="top"|Numeric
 
|valign="top"|Amount value is incremented or decremented when arrows are clicked
 
|-
 
|Readonly
 
|RW
 
|Boolean
 
|Whether object is read only
 
|-
 
|valign="top"|Prefix
 
|valign="top"|RW
 
|valign="top"|Character
 
|valign="top"|Prefix displayed before value, e.g. currency symbol
 
 
|-
 
|-
 
|Suffix
 
|Suffix
Line 65: Line 62:
 
|Character
 
|Character
 
|Suffix displayed after value, e.g. CR
 
|Suffix displayed after value, e.g. CR
 +
|-
 +
|Text
 +
|RW
 +
|Character
 +
|Object's numeric value as character
 
|-
 
|-
 
|valign="top"|Validation
 
|valign="top"|Validation
Line 75: Line 77:
 
|valign="top"|Character
 
|valign="top"|Character
 
|valign="top"|Message displayed if validation returns False
 
|valign="top"|Message displayed if validation returns False
 +
|-
 +
|Value
 +
|RW
 +
|Numeric
 +
|Object's numeric value
 
|-
 
|-
 
|}
 
|}
Line 82: Line 89:
 
This class supports the [[:Category:Common_Methods|Common Methods]] plus the following:
 
This class supports the [[:Category:Common_Methods|Common Methods]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Method
 
!width="20%"|Method
 
!Args
 
!Args
Line 93: Line 100:
 
This class supports the [[:Category:Common_Events|Common Events]] plus the following:
 
This class supports the [[:Category:Common_Events|Common Events]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Event
 
!width="20%"|Event
 
!Args
 
!Args

Latest revision as of 10:47, 9 April 2018

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Description

Shown below in a standalone Form. Click the image to see in a Custom Section in a Lianja Page.

Spinner

Spinner is a numeric Textbox control with increment/decrement controls

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
Alignment RW Numeric Alignment: 0 = left, 1 = right, 2 = center
Increment RW Numeric Amount value is incremented or decremented when arrows are clicked
KeyboardHighValue RW Numeric Maximum value using keyboard
KeyboardLowValue RW Numeric Minimum value using keyboard
Prefix RW Character Prefix displayed before value, e.g. currency symbol
Readonly RW Boolean Whether object is read only
SpinnerHighValue RW Numeric Maximum value using arrows
SpinnerLowValue RW Numeric Minimum value using arrows
Suffix RW Character Suffix displayed after value, e.g. CR
Text RW Character Object's numeric value as character
Validation RW Character String containing boolean expression to validate data entry
ValidationErrorMessage RW Character Message displayed if validation returns False
Value RW Numeric Object's numeric value

Methods

This class supports the Common Methods plus the following:

Method Args Description

Events

This class supports the Common Events plus the following:

Event Args Description