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
open val firstChild: Node?
Link copied to clipboard
open val lastChild: Node?
Link copied to clipboard
open val next: Node?
Link copied to clipboard
open var parent: Block?
Link copied to clipboard
open val previous: Node?
Link copied to clipboard
open var sourceSpans: List<SourceSpan?>?

Functions

Link copied to clipboard
open fun accept(visitor: Visitor?)
Link copied to clipboard
open fun addSourceSpan(sourceSpan: SourceSpan?)
Link copied to clipboard
open fun appendChild(child: Node?)
Link copied to clipboard
fun Node.children(): Sequence<Node>
Link copied to clipboard
open fun insertAfter(sibling: Node?)
Link copied to clipboard
open fun insertBefore(sibling: Node?)
Link copied to clipboard
open fun prependChild(child: Node?)
Link copied to clipboard
open fun unlink()