whenFalse

open fun whenFalse(condition: Boolean, consumer: ComponentBuilder.() -> Unit): ComponentBuilder

Conditionally applies a consumer lambda to this component builder if the condition is false.

Return

this component builder for chaining

Parameters

condition

the boolean condition to evaluate

consumer

the consumer lambda that operates on a component builder, executed only if condition is false