renderIf
open fun <V> Flow<V>.renderIf(predicate: (V) -> Boolean, into: Tag<HTMLElement>? = null, content: Tag<*>.(V) -> Unit)
Renders the data of a Flow only if the predicate is true.
Receiver
Flow containing the data
Parameters
predicate
must be true for the value to be rendered
into
target to mount content to. If not set a child div is added to the Tag this method is called on
content
RenderContext for rendering the data to the DOM