Skip to content

ButtonComponent.onClick method

ButtonComponent › onClick

Official

Sets the click event callback for the button component.

Signature:

onClick(callback: (evt: MouseEvent) => unknown): this

Parameters:

Parameter Type Description
callback (evt: MouseEvent) => unknown

Returns: this

Since: 0.12.16