ModalHandler

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class ModalHandler(val name: String)(source)

Declares this function as a modal handler for the specified modal name.

Requirements

Option types

  • Input options: Uses @ModalInput, the annotation's value must match the Custom ID set in the input component.

  • AppLocalizationContext: Uses @LocalizationBundle.

  • Custom options: No annotation, additional types can be added by implementing ICustomResolver.

  • Service options: No annotation, however, I recommend injecting the service in the class instead.

See also

@ModalData

@ModalInput

@Aggregate

Properties

Link copied to clipboard
@get:JvmName(name = "value")
val name: String

The name of the handler, which must be the same handler name as in Modals.create