KobwebCallBlock

class KobwebCallBlock : CustomBlock(source)

The block object that owns the nodes which will be used to extract the text for the Kobweb call from.

For example, {{{ .components.widgets.Example }}} will create a block with a single KobwebCall node as its child.

Call blocks can nest content which will get added as indented children to the final code. In other words, something like this:

{{{ .components.widgets.Warning
This API is deprecated and will be removed before v2.0 is published.
}}}

would produce Kotlin code like:

com.mysite.components.widgets.Warning {
Text("This API is deprecated and will be removed before v2.0 is published.")
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val firstChild: Node
Link copied to clipboard
val lastChild: Node
Link copied to clipboard
val next: Node
Link copied to clipboard
var sourceSpans: MutableList<SourceSpan>

Functions

Link copied to clipboard
open override fun accept(p0: Visitor)
Link copied to clipboard
open fun addSourceSpan(p0: SourceSpan)
Link copied to clipboard
open fun appendChild(p0: Node)
Link copied to clipboard
fun Node.children(): Sequence<Node>
Link copied to clipboard
open override fun getParent(): Block
Link copied to clipboard
open fun getPrevious(): Node
Link copied to clipboard
open fun insertAfter(p0: Node)
Link copied to clipboard
open fun insertBefore(p0: Node)
Link copied to clipboard
open fun prependChild(p0: Node)
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun unlink()