ConfigProperty

class ConfigProperty<T>(configMap: MutableMap<String, Any>)

Property delegate for kslides config options. Stores each assignment into the supplied configMap keyed by the Kotlin property name, which lets the config cascade work by simple map merge and lets AbstractConfig enumerate which options were actually set (rather than emitting every reveal.js default into the generated JS).

Reading an unset property throws — config instances that have not been seeded via AbstractConfig.merge or explicit assignment will fail loudly rather than silently return a default.

Parameters

Type Parameters

T

the property type (any Kotlin type; cast is unchecked on read).

Constructors

Link copied to clipboard
constructor(configMap: MutableMap<String, Any>)

Properties

Link copied to clipboard

Name of the last property written through this delegate. Used by toString for debugging.

Functions

Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T)
Link copied to clipboard
open override fun toString(): String