Difference between revisions of "Progressbar"

From Lianjapedia
Jump to: navigation, search
(Description)
 
(9 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.
 +
 +
====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}}:progressbar.png|link={{filepath:progressbar_cs.png}}|Progressbar]]
 +
 +
Progressbars are vertical or horizontal bar controls for displaying minimum, current (%) and maximum numeric values.
 +
 
====Properties====
 
====Properties====
  
This class supports the '''Common properties''' plus the following:
+
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following:
  
{| class="wikitable"
+
{| 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
+
|valign="top"|Alignment
|
+
|valign="top"|RW
|
+
|valign="top"|Numeric
 +
|valign="top"|Alignment of percentage label: 0 = left, 1 = right, 2 = center
 
|-
 
|-
|Value
+
|Maximum
 
|RW
 
|RW
|
+
|Numeric
|
+
|Maximum value
 
|-
 
|-
|Alignment
+
|Minimum
 
|RW
 
|RW
|
+
|Numeric
|
+
|Minimum value
 
|-
 
|-
|Maximum
+
|Orientation
 
|RW
 
|RW
|
+
|Numeric
|
+
|Orientation: 0 = horizontal, 1 = vertical
 
|-
 
|-
|Minimum
+
|Text
 
|RW
 
|RW
|
+
|Character
|
+
|Text associated with the progressbar
 
|-
 
|-
|Orientation
+
|Value
 
|RW
 
|RW
|
+
|Numeric
|
+
|Current progressbar value
 
|-
 
|-
 
|}
 
|}
Line 43: Line 53:
 
====Methods====
 
====Methods====
  
This class supports the '''Common methods''' plus the following:
+
This class supports the [[:Category:Common_Methods|Common Methods]] plus the following:
  
{| class="wikitable"
+
{| class="wikitable" width="100%"
 
!width="20%"|Method
 
!width="20%"|Method
 
!Args
 
!Args
Line 51: Line 61:
 
|-
 
|-
 
|Reset
 
|Reset
|
+
|None
|
+
|Reset the progressbar to its minimum value
 
|-
 
|-
 
|}
 
|}
Line 58: Line 68:
 
====Events====
 
====Events====
  
This class supports the '''Common events''' plus the following:
+
This class supports the [[:Category:Common_Events|Common Events]] plus the following:
  
{| class="wikitable"
+
{| class="wikitable" width="100%"
 
!width="20%"|Event
 
!width="20%"|Event
 
!Args
 
!Args

Latest revision as of 10:49, 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.

Progressbar

Progressbars are vertical or horizontal bar controls for displaying minimum, current (%) and maximum numeric values.

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
Alignment RW Numeric Alignment of percentage label: 0 = left, 1 = right, 2 = center
Maximum RW Numeric Maximum value
Minimum RW Numeric Minimum value
Orientation RW Numeric Orientation: 0 = horizontal, 1 = vertical
Text RW Character Text associated with the progressbar
Value RW Numeric Current progressbar value

Methods

This class supports the Common Methods plus the following:

Method Args Description
Reset None Reset the progressbar to its minimum value

Events

This class supports the Common Events plus the following:

Event Args Description