CustomCondition

class CustomCondition(val tags: ImmutableSet<String> = persistentSetOf(), val onEval: (Element<*>, Form) -> Unit)

A custom condition that can be attached to an Element.

Parameters

tags

The tags that this condition is associated with.

onEval

The function that is invoked when the condition is evaluated.

Constructors

Link copied to clipboard
constructor(tags: ImmutableSet<String> = persistentSetOf(), onEval: (Element<*>, Form) -> Unit)
constructor(vararg tags: String, onEval: (Element<*>, Form) -> Unit)

Constructs a custom condition with the specified tags and evaluation function.

Properties

Link copied to clipboard
val onEval: (Element<*>, Form) -> Unit
Link copied to clipboard
val tags: ImmutableSet<String>