# observe\_action\_event\_type/2

Source: https://zotonic.com/docs/2153/observe_action_event_type-2

URI: https://zotonic.com/id/2153

Language: en



Render the javascript for a custom action event type. The custom event type must be a tuple, for example: `{% wire type={live id=myid} action={...} %}</code>` Must return \{ok, Javascript, Context\}

Type:

[first](/id/doc_developerguide_notifications#notification-first)

Return:

`#action_event_type{}` properties:

- event: `tuple`
- trigger\_id: `string`
- trigger: `string`
- postback\_js: `iolist`
- postback\_pickled: `string|binary`
- action\_js: `iolist`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2153?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2153?language=en>)
