Label
Package: Libraries.Web.Page · Inherits from: Libraries.Web.Page.AttributeAccepter, Libraries.Web.Page.FormAttributeAccepter, Libraries.Web.Page.GlobalAttributeAccepter, Libraries.Web.Page.WebTag, Libraries.Language.Object, Libraries.Web.Page.MouseAttributeAccepter, Libraries.Web.Page.FlowContent
The Label class represents HTML's (Hypertext Markup Language) label tag which specifies labeling text for an input tag. This label can be bound to an input tag by either setting the for attribute to the label id or by placing the input tag inside the label tag. You can find more information about this tag at: The label attribute.
Example Code
use Libraries.Web.Page.all
class Main
action main
WebPage page
Form form
form:SetName("myForm")
Label label
label:SetElementId("idOfInput")
label:SetDescription("I'm a label")
Input formInput
formInput:SetIdentifier("idOfInput")
form:Add(label)
form:Add(formInput)
page:AddToBody(form)
output page:Generate()
end
end
Actions
Add(Libraries.Web.Page.Highlight content)
This action places a Highlight object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Highlight: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Highlight highlight
page:Add(highlight)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Inserted content)
This action places an Inserted object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Inserted: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Inserted inserted
page:Add(inserted)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.StrikeThrough content)
This action places a StrikeThrough object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.StrikeThrough: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
StrikeThrough strikeThrough
page:Add(strikeThrough)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.LineBreak content)
This action places a LineBreak object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.LineBreak: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
LineBreak lineBreak
page:Add(lineBreak)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.UnderlineText content)
This action places an UnderlineText object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.UnderlineText: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
UnderlineText underlineText
page:Add(underlineText)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.DefinitionTerm content)
This action places a DefinitionTerm object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.DefinitionTerm: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
DefinitionTerm definitionTerm
page:Add(definitionTerm)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Audio content)
This action places an Audio object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Audio: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Audio audio
page:Add(audio)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.StrongText content)
This action places a StrongText object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.StrongText: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
StrongText strongText
page:Add(strongText)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.SuperscriptText content)
This action places a SuperscriptText object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.SuperscriptText: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
SuperscriptText superscriptText
page:Add(superscriptText)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Option content)
This action places a Option object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Option: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Option option
page:Add(option)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.KeyboardInput content)
This action places a KeyboardInput object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.KeyboardInput: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
KeyboardInput keyboardInput
page:Add(keyboardInput)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Variable content)
This action places a Variable object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Variable: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Variable variable
page:Add(variable)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.ListOptions content)
This action places a ListOptions object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.ListOptions: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
ListOptions listOptions
page:Add(listOptions)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Quote content)
This action places a Quote object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Quote: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Quote quote
page:Add(quote)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.BiDirectionalOverride content)
This action places a BiDirectionalOverride object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.BiDirectionalOverride: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
BiDirectionalOverride biDirectionalOverride
page:Add(biDirectionalOverride)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.CodeBlock content)
This action places a CodeBlock object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.CodeBlock: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
CodeBlock codeBlock
page:Add(codeBlock)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.ImageMap content)
This action places an ImageMap object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.ImageMap: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
ImageMap imageMap
page:Add(imageMap)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Span content)
This action places a Span object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Span: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Span span
page:Add(span)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Area content)
This action places an Area object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Area: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Area area
page:Add(area)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Image content)
This action places an Image object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Image: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Image image
page:Add(image)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Ruby content)
This action places a Ruby object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Ruby: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Ruby ruby
page:Add(ruby)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Embed content)
This action places an Embed object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Embed: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Embed embed
page:Add(embed)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Emphasize content)
This action places an Emphasize object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Emphasize: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Emphasize emphasize
page:Add(emphasize)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.SubscriptText content)
This action places a SubscriptText object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.SubscriptText: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
SubscriptText subscriptText
page:Add(subscriptText)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.SmallText content)
This action places a SmallText object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.SmallText: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
SmallText smallText
page:Add(smallText)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.InlineFrame content)
This action places an InlineFrame object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.InlineFrame: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
InlineFrame inlineFrame
page:Add(inlineFrame)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.NoScript content)
This action places a NoScript object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.NoScript: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
NoScript noScript
page:Add(noScript)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Abbreviation content)
This action places a Abbreviation object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Abbreviation: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Abbreviation abbreviation
page:Add(abbreviation)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.MetaData content)
This action places a MetaData object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.MetaData: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
MetaData metaData
page:Add(metaData)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Bold content)
This action places a Bold object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Bold: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Bold bold
page:Add(bold)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Video content)
This action places a Video object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Video: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Video video
page:Add(video)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.HiddenContent content)
This action places a HiddenContent object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.HiddenContent: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
HiddenContent hiddenContent
page:Add(hiddenContent)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.BiDirectionalIsolation content)
This action places a BiDirectionalIsolation object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.BiDirectionalIsolation: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
BiDirectionalIsolation biDirectionalIsolation
page:Add(biDirectionalIsolation)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Script content)
This action places a Script object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Script: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Script script
page:Add(script)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Canvas content)
This action places a Canvas object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Canvas: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Canvas canvas
page:Add(canvas)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Italic content)
This action places an Italic object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Italic: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Italic italic
page:Add(italic)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Deleted content)
This action places a Deleted object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Deleted: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Deleted deleted
page:Add(deleted)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Time content)
This action places a Time object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Time: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Time time
page:Add(time)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.SampleOutput content)
This action places a SampleOutput object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.SampleOutput: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
SampleOutput sampleOutput
page:Add(sampleOutput)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Cite content)
This action places a Cite object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Cite: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Cite cite
page:Add(cite)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.Link content)
This action places a Link object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.Link: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Link link
page:Add(link)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.WordBreak content)
This action places a WordBreak object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.WordBreak: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
WordBreak wordBreak
page:Add(wordBreak)
text value = page:Generate()
output value
end
end
Add(Libraries.Web.Page.EmbedContent content)
This action places an EmbedContent object in the body of a WebPage.
Parameters
contentLibraries.Web.Page.EmbedContent: specifies what will be added to the page.
Example
use Libraries.Web.Page.all
class Main
action Main
WebPage page
EmbedContent embedContent
page:Add(embedContent)
text value = page:Generate()
output value
end
end
Generate()
This action sets the form id attribute of the label. The form id allows the label to be associated with a form element.
Returns
text
Example
use Libraries.Web.Page.Form
use Libraries.Web.Page.Label
Form form
form:SetName("form1")
Label label
label:SetFormId("form1")
GetElementId()
This action gets the element id attribute of the label. The element id allows the label to be associated with an input element.
Returns
Libraries.Web.Page.Attribute: The element id of the corresponding input element.
Example
use Libraries.Web.Page.Label
use Libraries.Web.Page.Attribute
Label label
Attribute id = label:GetElementId()
GetFormId()
This action gets the form id attribute of the label. The form id allows the label to be associated with a form element.
Returns
Libraries.Web.Page.Attribute: The element id of the corresponding input element.
Example
use Libraries.Web.Page.Label
use Libraries.Web.Page.Attribute
Label label
Attribute id = label:GetFormId()
SetElementId(text value)
This action sets the element id attribute of the label. The element id allows the label to be associated with an input element.
Parameters
valuetext: The element id that the label is associated with.
Example
use Libraries.Web.Page.Label
use Libraries.Web.Page.Input
Label label
label:SetElementId("male")
SetFormId(text value)
This action sets the form id attribute of the label. The form id allows the label to be associated with a form element.
Parameters
valuetext: The form id that the label is associated with.
Example
use Libraries.Web.Page.Form
use Libraries.Web.Page.Label
Form form
form:SetName("form1")
Label label
label:SetFormId("form1")
Inherited Actions
2 actions from Libraries.Language.Object
10 actions from Libraries.Web.Page.AttributeAccepter
20 actions from Libraries.Web.Page.FormAttributeAccepter
- GetOnBlur()
- GetOnChange()
- GetOnContextMenu()
- GetOnFocus()
- GetOnFormChange()
- GetOnFormInput()
- GetOnInput()
- GetOnInvalid()
- GetOnSelect()
- GetOnSubmit()
- SetOnBlur(text value)
- SetOnChange(text value)
- SetOnContextMenu(text value)
- SetOnFocus(text value)
- SetOnFormChange(text value)
- SetOnFormInput(text value)
- SetOnInput(text value)
- SetOnInvalid(text value)
- SetOnSelect(text value)
- SetOnSubmit(text value)
29 actions from Libraries.Web.Page.GlobalAttributeAccepter
- AddClassAttribute(text value)
- GetAccessKey()
- GetClassAttribute()
- GetContentEditable()
- GetContextMenu()
- GetDraggable()
- GetDropZone()
- GetHidden()
- GetIdentifier()
- GetLanguage()
- GetSpellcheck()
- GetStyle()
- GetTabIndex()
- GetTextDirection()
- GetTitle()
- SetAccessKey(text value)
- SetClassAttribute(text value)
- SetContentEditable(text value)
- SetContextMenu(text value)
- SetDraggable(boolean value)
- SetDropZone(text value)
- SetHidden(boolean value)
- SetIdentifier(text value)
- SetLanguage(text value)
- SetSpellcheck(boolean value)
- SetStyle(text value)
- SetTabIndex(text value)
- SetTextDirection(text value)
- SetTitle(text value)
32 actions from Libraries.Web.Page.MouseAttributeAccepter
- GetOnClick()
- GetOnDoubleClick()
- GetOnDrag()
- GetOnDragEnd()
- GetOnDragEnter()
- GetOnDragLeave()
- GetOnDragOver()
- GetOnDragStart()
- GetOnDrop()
- GetOnMouseDown()
- GetOnMouseMove()
- GetOnMouseOut()
- GetOnMouseOver()
- GetOnMouseUp()
- GetOnMouseWheel()
- GetOnScroll()
- SetOnClick(text value)
- SetOnDoubleClick(text value)
- SetOnDrag(text value)
- SetOnDragEnd(text value)
- SetOnDragEnter(text value)
- SetOnDragLeave(text value)
- SetOnDragOver(text value)
- SetOnDragStart(text value)
- SetOnDrop(text value)
- SetOnMouseDown(text value)
- SetOnMouseMove(text value)
- SetOnMouseOut(text value)
- SetOnMouseOver(text value)
- SetOnMouseUp(text value)
- SetOnMouseWheel(text value)
- SetOnScroll(text value)