abstract class fandoc::DocElem
sys::Obj fandoc::DocNode fandoc::DocElem
@Js
DocElem is a container node which models a branch of the doc tree.
See pod doc for usage.
- addChild
-
Add a child to this node. If adding a text node it is automatically merged with the trailing text node (if applicable). Return this.
- anchorId
-
Str? anchorId
- children
-
DocNode[] children := DocNode[,]
- htmlName
-
abstract Str htmlName()
Get the HTML element name to use for this element.
- isBlock
-
Bool isBlock()
Is this a block element versus an inline element.
- isInline
-
abstract Bool isInline()
Is this an inline versus a block element.
- write
-
virtual override Void write(DocWriter out)
Write this element and its children to the specified DocWriter.
- writeChildren
-
Void writeChildren(DocWriter out)
Write this element's children to the specified DocWriter.