Difference between revisions of "Label"

From Lianjapedia
Jump to: navigation, search
(Properties)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
For the mailing label command, see [[LABEL FORM]].
 +
 +
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}}:label.png|link={{filepath:label_cs.png}}|Label]]
 +
 +
Label is a control for displaying text.
 +
 
====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)
Line 9: Line 20:
 
!width="50%"|Description
 
!width="50%"|Description
 
|-
 
|-
 +
|valign="top"|Alignment
 +
|valign="top"|RW
 +
|valign="top"|Numeric
 +
|valign="top"|Alignment of text: 0 = left, 1 = right, 2 = center
 +
|-
 +
 +
  
|caption
+
|Caption
 
|RW
 
|RW
|string
+
|Character
|
+
|Text displayed in the Label
 
|-
 
|-
  
|editable
+
|Editable
 
|RW
 
|RW
|boolean
+
|Boolean
|
+
|Whether label is editable
 
|-
 
|-
  
|alignment
+
|valign="top"|Gradient
 +
|valign="top"|RW
 +
|valign="top"|Numeric
 +
|valign="top"|Gradient type: 0 = none, 1 = vertical spread, 2 = left to right, 3 = right to left, 4 = vertical centered, 5 = iPad style
 +
|-
 +
|GradientFromColor
 
|RW
 
|RW
|numeric
+
|Numeric
|0=left<br>1=right<br>2=center
+
|Gradient start color
 
|-
 
|-
 
+
|GradientToColor
|wordwrap
+
 
|RW
 
|RW
|boolean
+
|Numeric
|
+
|Gradient end color
 
|-
 
|-
 
+
|Indent
|indent
+
 
|RW
 
|RW
|numeric
+
|Numeric
|
+
|Indent in pixels
 
|-
 
|-
 
+
|Text
|gradient
+
 
|RW
 
|RW
|numeric
+
|Character
|1=top to bottom</br>2=left to right</br>3, top left to bottom right</br>4=top right to bottom left
+
|Text displayed in the Label
 
|-
 
|-
 
+
|Value
|gradientfromcolor
+
 
|RW
 
|RW
|string
+
|Character
|
+
|Text displayed in the Label
 
|-
 
|-
 
+
|WordWrap
|gradienttocolor
+
 
|RW
 
|RW
|string
+
|Boolean
|
+
|Whether text is word-wrapped
 
|-
 
|-
 
 
 
 
|}
 
|}
  
 
====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 75: Line 90:
 
====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
 
!width="50%"|Description
 
!width="50%"|Description
 
+
|-
 +
|LinkClicked
 +
|link as Character
 +
|Occurs after link is clicked
 +
|-
 
|}
 
|}
 +
 +
[[Category:Documentation]]
 +
[[Category:Framework Classes]]

Latest revision as of 05:57, 16 December 2020

For the mailing label command, see LABEL FORM.

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.

Label

Label is a control for displaying text.

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
Alignment RW Numeric Alignment of text: 0 = left, 1 = right, 2 = center
Caption RW Character Text displayed in the Label
Editable RW Boolean Whether label is editable
Gradient RW Numeric Gradient type: 0 = none, 1 = vertical spread, 2 = left to right, 3 = right to left, 4 = vertical centered, 5 = iPad style
GradientFromColor RW Numeric Gradient start color
GradientToColor RW Numeric Gradient end color
Indent RW Numeric Indent in pixels
Text RW Character Text displayed in the Label
Value RW Character Text displayed in the Label
WordWrap RW Boolean Whether text is word-wrapped

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
LinkClicked link as Character Occurs after link is clicked