%Studio.Template.HTMLElement
Class %Studio.Template.HTMLElement Extends (%Persistent, %XML.Adaptor) [ Inheritance = right, Not ProcedureBlock, System = 3 ]
Represents an HTML attribute associated with a specific HTML element.
See the Template.HTMLTag class for more information. This class represents one of a list of HTML Tags. This list is used by the Studio CSP Tag Template to provide a list of HTML tags and their associated attributes (which as represented using the related Template.HTMLAttribute).
The data for this set of objects is provided within an XML file, htmltags.xml, that is provided in the dev/studio/templates directory.
To load this file:
Do ##class(%Studio.Template.HTMLElement).Import()
Parameters
XMLNAME
Parameter XMLNAME = "element";
Properties
Tag
Property Tag As %String(MAXLEN = 256, XMLNAME = "ename", XMLPROJECTION = "attribute");
Represents an HTML attribute associated with a specific HTML element.
See the Template.HTMLTag class for more information. Represents an HTML attribute associated with a specific HTML element.
See the Template.HTMLTag class for more information. Name of an HTML tag
Description
Property Description As %String(MAXLEN = 4000, XMLNAME = "description", XMLPROJECTION = "element");
Description of this element.
ShortDescription
Property ShortDescription As %String(MAXLEN = 255, XMLNAME = "edesc", XMLPROJECTION = "attribute");
Description of this element.
IsEmpty
Property IsEmpty As %Boolean(XMLNAME = "empty", XMLPROJECTION = "attribute");
Is this an empty tag?
Attrs
Relationship Attrs As HTMLAttribute(XMLITEMNAME = "attr", XMLNAME = "attrs") [ Cardinality = children, Inverse = Tag ];
Attributes associated with this tag.
Methods
GetAttrs
ClassMethod GetAttrs(tag As %String, ByRef attrs, ByRef cats) As %Boolean
Get list of attributes used by tag.
Returns true if the element is defined.
Import
ClassMethod Import(filename As %String = "")
Load an HTML tags definition file into the HTMLTag extent