VerticalDslSlide

class VerticalDslSlide(val presentation: Presentation, content: SlideArgs) : VerticalSlide, DslSlide

A DSL slide inside a verticalSlides{} block. Same semantics as HorizontalDslSlide.

Constructors

Link copied to clipboard
constructor(presentation: Presentation, content: SlideArgs)

Properties

Link copied to clipboard

When true, reveal.js auto-animates between this slide and the previous one.

Link copied to clipboard

When true, forces auto-animate to restart from this slide even if the previous used it.

Link copied to clipboard

CSS class list applied to the slide's <section> element.

Link copied to clipboard

Placeholder that intentionally throws when written to — CSS must be declared at the kslides{} or presentation{} level, not on individual slides. Present so invalid usage produces a clear error rather than silently compiling.

Link copied to clipboard
Link copied to clipboard

When true, the slide is excluded from navigation and the slide counter.

Link copied to clipboard
var id: String

HTML id applied to the slide's <section>; blank omits the attribute.

Link copied to clipboard
open val krokiPath: String

Filesystem directory where Kroki diagram files are written.

Link copied to clipboard

Version of the Lets-Plot JS runtime loaded by generated Lets-Plot iframes.

Link copied to clipboard

Filesystem directory where Lets-Plot iframe HTML files are written.

Link copied to clipboard

Filesystem directory where Playground iframe HTML files are written.

Link copied to clipboard
open override val presentation: Presentation

The Presentation that owns this slide.

Link copied to clipboard
Link copied to clipboard
open override var private_dslAssigned: Boolean

Implementation detail — do not use.

Link copied to clipboard
open override var private_dslBlock: SECTION.() -> Unit

Implementation detail — do not use.

Link copied to clipboard
open override var private_iframeCount: Int

Implementation detail — counter for per-slide iframe filenames.

Link copied to clipboard
open override var private_section: SECTION?

Implementation detail — do not use.

Link copied to clipboard

Implementation detail — unique slide id used to generate iframe filenames.

Link copied to clipboard
open override var private_useHttp: Boolean

Implementation detail — do not use.

Link copied to clipboard

Inline CSS applied to the slide's <section>; blank omits the attribute.

Link copied to clipboard

When true, the slide is navigable but excluded from the slide counter.

Functions

Link copied to clipboard
fun content(dslBlock: SECTION.() -> Unit)
Link copied to clipboard
fun css(block: CssBuilder.() -> Unit)

Guard against declaring css {} inside a slide — CSS belongs on the kslides{} or presentation{} scope. Always throws IllegalArgumentException.

Link copied to clipboard
fun DslSlide.diagram(diagramType: String, diagramBlock: DiagramDescription.() -> Unit)

Embed a Kroki-rendered diagram inside a DslSlide content{} block. The diagram source is POSTed to Kroki; the resulting image is cached by filename so repeated renders of the same presentation do not re-hit Kroki.

Link copied to clipboard
fun DslSlide.include(src: String, linePattern: String = "", beginToken: String = "", endToken: String = "", exclusive: Boolean = true, trimIndent: Boolean = true): String

include variant for use inside a com.kslides.slide.DslSlide content{} block. Same semantics as CODE.include — HTML escaping and the indent token are turned off.

Link copied to clipboard
open fun krokiFilename(filename: String): String

Resolve filename relative to the configured Kroki output directory.

Link copied to clipboard
open fun letsPlotFilename(filename: String): String

Resolve filename relative to the configured Lets-Plot output directory.

Link copied to clipboard
open fun newFilename(suffix: String = "html"): String

Generate a unique per-slide filename for iframe or image content. Each call increments the internal counter so multiple playgrounds / diagrams / plots on the same slide get distinct filenames.

Link copied to clipboard
inline fun SectioningOrFlowContent.notes(crossinline block: ASIDE.() -> Unit = {})
Link copied to clipboard
fun DslSlide.playground(srcName: String, vararg otherSrcs: String = emptyArray(), configBlock: PlaygroundConfig.() -> Unit = {})

Embed an interactive Kotlin Playground iframe inside a DslSlide content{} block. The source file referenced by srcName is inlined into the Playground editor; any otherSrcs are attached as hidden <textarea class="hidden-dependency"> elements that Playground loads alongside the main file.

Link copied to clipboard
open fun playgroundFilename(filename: String): String

Resolve filename relative to the configured Playground output directory.

Link copied to clipboard
fun processSlide(section: SECTION)

Apply this slide's id/style/visibility/auto-animate attributes plus the merged SlideConfig to the given <section> element. Called by the slide renderer and not typically invoked by user code.

Link copied to clipboard
fun slideConfig(block: SlideConfig.() -> Unit)

Configure per-slide reveal.js attributes (transitions, backgrounds, Markdown separators, etc.). Overrides values inherited from the global and presentation slideConfig{} blocks.