logo

abstract class

fandoc::DocElem

sys::Obj
  fandoc::DocNode
    fandoc::DocElem

DocElem is a container node which models a branch of the doc tree.

See docLib::Fandoc for usage.

Slots

addChild

This addChild(DocNode node)

Add a child to this node. If adding a text node it is automatically merged with the trailing text node (if applicable). Return this.

Source

anchorId

Str anchorId

Source

children

DocNode[] children := DocNode[,]

Source

htmlName

abstract Str htmlName()

Get the HTML element name to use for this element.

Source

isBlock

Bool isBlock()

Is this a block element versus an inline element.

Source

isInline

abstract Bool isInline()

Is this an inline versus a block element.

Source

write

override Void write(DocWriter out)

Write this element and its children to the specified DocWriter.

Source

writeChildren

Void writeChildren(DocWriter out)

Write this element's children to the specified DocWriter.

Source