Fan

 

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

addChildSource

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.

anchorIdSource

Str? anchorId

childrenSource

DocNode[] children := DocNode[,]

htmlNameSource

abstract Str htmlName()

Get the HTML element name to use for this element.

isBlockSource

Bool isBlock()

Is this a block element versus an inline element.

isInlineSource

abstract Bool isInline()

Is this an inline versus a block element.

writeSource

override Void write(DocWriter out)

Write this element and its children to the specified DocWriter.

writeChildrenSource

Void writeChildren(DocWriter out)

Write this element's children to the specified DocWriter.