Libraries.Web.Page.OrderedList Documentation
The OrderedList class represents HTML's (Hypertext Markup Language) ol tag which is used to create an ordered list that can be ordered numerically or alphabetically. You can find more information about this tag at: The ol attribute.
Example Code
use Libraries.Web.Page.all
class Main
action main
WebPage page
OrderedList ol
ListItem li
li:SetDescription("A")
ol:Add(li)
page:AddToBody(ol)
output page:Generate()
end
end
Inherits from: Libraries.Web.Page.AttributeAccepter, Libraries.Language.Object, Libraries.Web.Page.GlobalAttributeAccepter, Libraries.Web.Page.WebTag
Summary
Variable Summary Table
Variables | Description |
---|---|
text alphabeticalUpperCaseType | |
text romanNumberLowerCaseType | |
text numericalType | |
text romanNumberUpperCaseType | This action sets the start value of the ordered list. |
text alphabeticalLowerCaseType |
Actions Summary Table
Actions | Description |
---|---|
Add(Libraries.Web.Page.Attribute attribute) | This action adds an attribute to this object. |
Add(Libraries.Web.Page.HiddenContent content) | This action places a HiddenContent object inside of an OrderedList object. |
Add(Libraries.Web.Page.ListItem content) | This action places a ListItem object inside of an OrderedList object. |
Add(Libraries.Web.Page.Script content) | This action places a Script object inside of an OrderedList object. |
AddAttribute(text name, text value) | This action adds an attribute to this object. |
AddClassAttribute(text value) | Adds to the ClassAttribute attribute. |
AddListItem(text listItemText) | This action adds a ListItem with the specified text and to an OrderedList object. |
AddListItemLink(text linkText, text linkDestination) | This action adds a ListItem that has a Link inside of it with the specified link text and location to an OrderedList object. |
AddNestedTag(Libraries.Web.Page.WebTag tag) | This action adds a WebTag to the list of WebTags contained within the current WebTag. |
AddText(text value) | This action sets the description text for this WebTag. |
Compare(Libraries.Language.Object object) | This action compares two object hash codes and returns an integer. |
Equals(Libraries.Language.Object object) | This action determines if two objects are equal based on their hash code values. |
Generate() | This action gets wether the ordered list is in descending order or not. |
GenerateAttributes() | This action returns a text description of all attributes stored. |
GenerateNestedTags() | This action generates the HTML output text of all of the nested WebTags. |
GetAccessKey() | Returns the AccessKey attribute. |
GetAttribute(text name) | This action returns an attribute from this object's Attributes object. |
GetAttributeValue(text name) | This action returns an attribute from this object's Attributes object. |
GetAttributes() | Returns a list of all attributes on the system. |
GetClassAttribute() | Returns the ClassAttribute attribute. |
GetContentEditable() | Returns the ContentEditable attribute. |
GetContextMenu() | Returns the ContextMenu attribute. |
GetDraggable() | Returns the Draggable attribute. |
GetDropZone() | Returns the DropZone attribute. |
GetHashCode() | This action gets the hash code for an object. |
GetHidden() | Returns the Hidden attribute. |
GetIdentifier() | Returns the Identifier attribute. |
GetIterator() | This action returns an iterator of all attributes stored in this object. |
GetLanguage() | Returns the Language attribute. |
GetNumberOfAttributes() | This action returns the number of attributes that are currently stored in this object. |
GetNumberOfNestedTags() | This action gets the number of nested tags within the current WebTag. |
GetReversed() | This action gets wether the ordered list is in descending order or not. |
GetSpellcheck() | Returns the Spellcheck attribute. |
GetStartValue() | This action gets the start value of the ordered list. |
GetStyle() | Returns the Style attribute. |
GetTabIndex() | Returns the TabIndex attribute. |
GetTag(integer index) | This action gets the number of nested tags within the current WebTag. |
GetTextDirection() | Returns the TextDirection attribute. |
GetTitle() | Returns the Title attribute. |
GetType() | This action gets the type of marker on the ordered list(e. |
HasAttribute(text name) | This action returns whether or not an attribute exists for the key passed in as a parameter. |
Remove(Libraries.Web.Page.WebTag tag) | This action removes the first instance of a webtag found in the list of sub-WebTags. |
RemoveAttribute(text name) | This action removes an attribute with a particular key. |
SetAccessKey(text value) | Sets the AccessKey attribute. |
SetClassAttribute(text value) | Sets the ClassAttribute attribute. |
SetContentEditable(text value) | Sets the ContentEditable attribute. |
SetContextMenu(text value) | Sets the ContextMenu attribute. |
SetDraggable(boolean value) | Sets the Draggable attribute. |
SetDropZone(text value) | Sets the DropZone attribute. |
SetHidden(boolean value) | Sets the AccessKey attribute. |
SetIdentifier(text value) | Sets the Identifier attribute. |
SetLanguage(text value) | Creates and sets an attribute for language. |
SetReversed(boolean value) | This action sets the ordered list to descending order when true. |
SetSpellcheck(boolean value) | Sets the Spellcheck attribute. |
SetStartValue(text value) | This action sets the start value of the ordered list. |
SetStyle(text value) | Sets the Style attribute. |
SetTabIndex(text value) | Sets the TabIndex attribute. |
SetTextDirection(text value) | Sets the TextDirection attribute. |
SetTitle(text value) | Sets the Title attribute. |
SetType(text value) | This action sets the type of marker on the ordered list(e. |
Actions Documentation
Add(Libraries.Web.Page.Attribute attribute)
This action adds an attribute to this object. If an attribute with the same name as
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
Attribute attribute
attribute:SetName("src")
attribute:SetValue("http://www.google.com")
AttributeAccepter accept
accept:Add(attribute)
Parameters
- Libraries.Web.Page.Attribute: The attribute that will be stored.
Add(Libraries.Web.Page.HiddenContent content)
This action places a HiddenContent object inside of an OrderedList object.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
HiddenContent hiddenContent
page:Add(hiddenContent)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.HiddenContent: specifies what will be added to the page.
Add(Libraries.Web.Page.ListItem content)
This action places a ListItem object inside of an OrderedList object.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
OrderedList ol
ListItem li
li:SetDescription("A")
ol:Add(li)
page:AddToBody(ol)
output page:Generate()
end
end
Parameters
- Libraries.Web.Page.ListItem: specifies what will be added to the page.
Add(Libraries.Web.Page.Script content)
This action places a Script object inside of an OrderedList object.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Script script
page:Add(script)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Script: specifies what will be added to the page.
AddAttribute(text name, text value)
This action adds an attribute to this object. This action is a helper action, which essentially does the same thing as the Add(Attribute) action. If an attribute with the same name as
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
Parameters
- text name: The name of the attribute functions as a key. For example, in a link, we might have a "src" and an actual address, like google.com. In this case, the name would be equivalent to the src.
- text value: As an example of link, imagine we have a value of "src" and an actual address, like google.com. In this case, the value would be equivalent to google.com.
AddClassAttribute(text value)
Adds to the ClassAttribute attribute. Multiple class names can be listed in the passed text, separated by a space.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:AddClassAttribute("myClass")
Parameters
- text value: The classes to be added to the element
AddListItem(text listItemText)
This action adds a ListItem with the specified text and to an OrderedList object.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
OrderedList ol
ol:AddListItem("List Item 1")
page:Add(ol)
text value = page:Generate()
output value
end
end
Parameters
- text listItemText: specifies the text that will appear in the ListItem object
Return
Libraries.Web.Page.ListItem: the generated ListItem object for any further manipulation
AddListItemLink(text linkText, text linkDestination)
This action adds a ListItem that has a Link inside of it with the specified link text and location to an OrderedList object.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
OrderedList ol
ol:AddListItemLink("Quorum Reference Page", "www.quorumlanguage.com/reference.php")
page:Add(ol)
text value = page:Generate()
output value
end
end
Parameters
- text linkText: specifies the text that will appear in the ListItem object as a link
- text linkDestination: specifies where the link leads to
Return
Libraries.Web.Page.ListItem: the generated ListItem object (which has the Link object inside of it) for any further manipulation
AddNestedTag(Libraries.Web.Page.WebTag tag)
This action adds a WebTag to the list of WebTags contained within the current WebTag.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
Parameters
- Libraries.Web.Page.WebTag: The WebTag to be added to the list of sub-WebTags.
AddText(text value)
This action sets the description text for this WebTag.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:AddDescription("name")
row:Add(cell)
Parameters
- text value: The text contained in the WebTag.
Compare(Libraries.Language.Object object)
This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.
Example Code
Object o
Object t
integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)
Parameters
- Libraries.Language.Object: The object to compare to.
Return
integer: The Compare result, Smaller, Equal, or Larger.
Equals(Libraries.Language.Object object)
This action determines if two objects are equal based on their hash code values.
Example Code
use Libraries.Language.Object
use Libraries.Language.Types.Text
Object o
Text t
boolean result = o:Equals(t)
Parameters
- Libraries.Language.Object: The to be compared.
Return
boolean: True if the hash codes are equal and false if they are not equal.
Generate()
This action gets wether the ordered list is in descending order or not.
Example Code
use Libraries.Web.Page.Attribute
use Libraries.Web.Page.OrderedList
OrderedList ol
ol:SetReversed(true)
boolean isDescending = ol:GetReversed()
Return
text: True for descending order false for assending order.
GenerateAttributes()
This action returns a text description of all attributes stored.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
text result = accept:GenerateAttributes()
Return
text:
GenerateNestedTags()
This action generates the HTML output text of all of the nested WebTags.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
output row:GenerateNestedTags()
Return
text: The text including all webtags within this WebTag.
GetAccessKey()
Returns the AccessKey attribute. Specifies a shortcut key for the web element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetAccessKey()
Return
Libraries.Web.Page.Attribute: The current AccessKey attribute.
GetAttribute(text name)
This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
//as we have not set any attribute, this would
//return undefined
Attribute attribute = accept:GetAttribute("src")
Parameters
Return
GetAttributeValue(text name)
This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
text value = accept:GetAttributeValue("src")
Parameters
- text name: The key value in this case is described in more detail in the documentation for this class's Add actions.
Return
text:
GetAttributes()
Returns a list of all attributes on the system.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attributes
AttributeAccepter accept
Attributes attributes = accept:GetAttributes()
Return
Libraries.Web.Page.Attributes: The attributes class contains all of the attributes that have been set for this object.
GetClassAttribute()
Returns the ClassAttribute attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetClassAttribute()
Return
Libraries.Web.Page.Attribute: The current ClassAttribute attribute.
GetContentEditable()
Returns the ContentEditable attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetContentEditable()
Return
Libraries.Web.Page.Attribute: The current ContentEditable attribute.
GetContextMenu()
Returns the ContextMenu attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetContextMenu()
Return
Libraries.Web.Page.Attribute: The current ContextMenu attribute.
GetDraggable()
Returns the Draggable attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetDraggable()
Return
Libraries.Web.Page.Attribute: The current Draggable attribute.
GetDropZone()
Returns the DropZone attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetDropZone()
Return
Libraries.Web.Page.Attribute: The current DropZone attribute.
GetHashCode()
This action gets the hash code for an object.
Example Code
Object o
integer hash = o:GetHashCode()
Return
integer: The integer hash code of the object.
GetHidden()
Returns the Hidden attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetHidden()
Return
Libraries.Web.Page.Attribute: The current Hidden attribute.
GetIdentifier()
Returns the Identifier attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetIdentifier()
Return
Libraries.Web.Page.Attribute: The current Identifier attribute.
GetIterator()
This action returns an iterator of all attributes stored in this object.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
use Libraries.Containers.Iterator
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//output out all of the attributes
Iterator<Attribute> it = accept:GetIterator()
repeat while it:HasNext()
Attribute at = it:Next()
output at:Generate()
end
Return
Libraries.Containers.Iterator:
GetLanguage()
Returns the Language attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetLanguage()
Return
Libraries.Web.Page.Attribute: The current Language attribute.
GetNumberOfAttributes()
This action returns the number of attributes that are currently stored in this object.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
integer num = accept:GetNumberOfAttributes()
Return
integer:
GetNumberOfNestedTags()
This action gets the number of nested tags within the current WebTag.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
integer numTags = row:GetSize()
Return
integer: The number of nested tags.
GetReversed()
This action gets wether the ordered list is in descending order or not.
Example Code
use Libraries.Web.Page.Attribute
use Libraries.Web.Page.OrderedList
OrderedList ol
ol:SetReversed(true)
boolean isDescending = ol:GetReversed()
Return
boolean: True for descending order false for assending order.
GetSpellcheck()
Returns the Spellcheck attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetSpellcheck()
Return
Libraries.Web.Page.Attribute: The current Spellcheck attribute.
GetStartValue()
This action gets the start value of the ordered list.
Example Code
use Libraries.Web.Page.Attribute
use Libraries.Web.Page.OrderedList
OrderedList ol
ol:SetStartValue("3")
Attribute startVal = ol:GetStartValue()
Return
Libraries.Web.Page.Attribute: The start value of the list.
GetStyle()
Returns the Style attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetStyle()
Return
Libraries.Web.Page.Attribute: The current Style attribute.
GetTabIndex()
Returns the TabIndex attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetTabIndex()
Return
Libraries.Web.Page.Attribute: The current TabIndex attribute.
GetTag(integer index)
This action gets the number of nested tags within the current WebTag.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
WebTag tag = row:GetTag(0)
Parameters
Return
Libraries.Web.Page.WebTag: The number of nested tags.
GetTextDirection()
Returns the TextDirection attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetTextDirection()
Return
Libraries.Web.Page.Attribute: The current TextDirection attribute.
GetTitle()
Returns the Title attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetTitle()
Return
Libraries.Web.Page.Attribute: The current Title attribute.
GetType()
This action gets the type of marker on the ordered list(e.g. 1, A, a, I, i)
Example Code
use Libraries.Web.Page.Attribute
use Libraries.Web.Page.OrderedList
OrderedList ol
ol:SetType("A")
Attribute type = ol:GetType()
Return
Libraries.Web.Page.Attribute: The marker of the list.
HasAttribute(text name)
This action returns whether or not an attribute exists for the key passed in as a parameter.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
boolean exists = accept:HasAttribute("src")
Parameters
- text name: The key value in this case is described in more detail in the documentation for this class's Add actions.
Return
boolean:
Remove(Libraries.Web.Page.WebTag tag)
This action removes the first instance of a webtag found in the list of sub-WebTags.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
row:Remove(cell)
Parameters
- Libraries.Web.Page.WebTag: The WebTag to remove from the list of WebTags.
RemoveAttribute(text name)
This action removes an attribute with a particular key. If that attribute does not exist, then this action returns undefined.
Example Code
use Libraries.Web.Page.AttributeAccepter
use Libraries.Web.Page.Attribute
AttributeAccepter accept
accept:AddAttribute("src", "http://www.google.com")
//This helper action would throw an error if "src" were not set.
accept:RemoveAttribute("src")
Parameters
- text name: The name of the attribute that should be removed.
Return
SetAccessKey(text value)
Sets the AccessKey attribute. Specifies a shortcut key for the web element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetAccessKey("z")
Parameters
- text value: The current AccessKey.
SetClassAttribute(text value)
Sets the ClassAttribute attribute. Specifies a class name for the element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetClassAttribute("myClass")
Parameters
- text value: The current ClassAttribute.
SetContentEditable(text value)
Sets the ContentEditable attribute. Specifies wether content in an element is editable.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetContentEditable("true")
Parameters
- text value: The current ContentEditable.
SetContextMenu(text value)
Sets the ContextMenu attribute. Specifies a context menu that contains the element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetContextMenu("parentmenu")
Parameters
- text value: The current ContextMenu.
SetDraggable(boolean value)
Sets the Draggable attribute. Specifies wether an element is draggable or not.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetDraggable(true)
Parameters
- boolean value: The current Draggable.
SetDropZone(text value)
Sets the DropZone attribute. This element specifies what happens when an element is dropped on a web page. The three valid values are copy, move, and link.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetDropZone("move")
Parameters
- text value: The current DropZone.
SetHidden(boolean value)
Sets the AccessKey attribute. Specifies wether an element is hidden or not.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetHidden(false)
Parameters
- boolean value: To true to hide element and false to make it visible.
SetIdentifier(text value)
Sets the Identifier attribute. Specifies a unique name for the element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetIdentifier("myElement")
Parameters
- text value: The current Identifier.
SetLanguage(text value)
Creates and sets an attribute for language. As these codes are esoteric in the standard on the web (HTML), we recommend using the LanguageCode class to help.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.LanguageCode
use Libraries.Web.Page.Link
LanguageCode code
//use any WebItem, in this case a link
Link link
link:SetLanguage(code:english)
Parameters
SetReversed(boolean value)
This action sets the ordered list to descending order when true.
Example Code
use Libraries.Web.Page.Attribute
use Libraries.Web.Page.OrderedList
OrderedList ol
ol:SetReversed(true)
Parameters
- boolean value: True for descending order false for assending order.
SetSpellcheck(boolean value)
Sets the Spellcheck attribute. Specifies wether spellcheck is on or off.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetSpellcheck(true)
Parameters
- boolean value: The current Spellcheck.
SetStartValue(text value)
This action sets the start value of the ordered list.
Example Code
use Libraries.Web.Page.Attribute
use Libraries.Web.Page.OrderedList
OrderedList ol
ol:SetStartValue("3")
Parameters
- text value: The start value of the list.
SetStyle(text value)
Sets the Style attribute. Specifies inline css formatting for an element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetStyle("color:orange")
Parameters
- text value: The current Style.
SetTabIndex(text value)
Sets the TabIndex attribute. Specifies a tab order for elements.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetTabIndex("0")
Parameters
- text value: The current TabIndex.
SetTextDirection(text value)
Sets the TextDirection attribute. Specifies a direction for the text to be written. For example, "ltr" is left-to-right.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetTextDirection("rtl")
Parameters
- text value: The current TextDirection.
SetTitle(text value)
Sets the Title attribute. Specifies title information for the web element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetTitle("MyTitle")
Parameters
- text value: The current Title.
SetType(text value)
This action sets the type of marker on the ordered list(e.g. 1, A, a, I, i)
Example Code
use Libraries.Web.Page.Attribute
use Libraries.Web.Page.OrderedList
OrderedList ol
ol:SetType("A")
Parameters
- text value: The marker of the list.