# toolbar.actions.onClick

Part of [Toolbar](https://kernstra.com/docs/web-sdk/config/toolbar) in the Kernstra Web SDK 1.0.0 configuration reference.

- Type: `() => void | Promise<void>`
- Required
- Page: https://kernstra.com/docs/web-sdk/config/toolbar/actions-onclick

Called when the button is pressed. A rejected promise is logged and reported through the `error` event.

Web page: https://kernstra.com/docs/web-sdk/config/toolbar/actions-onclick
