Skip to content

Commit 4d71e09

Browse files
committed
Add additional TypeScript information in the code example
1 parent e898451 commit 4d71e09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/php/api/form_builder/form_fields.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,9 @@ When this button is pressed, the `fileProcessorCustomAction` event is fired, whi
553553
Example:
554554

555555
```ts
556-
document.getElementById('exampleFileIDContainer').addEventListener('fileProcessorCustomAction', (event) => {
557-
// event.detail is the $actionName
556+
document.getElementById('exampleFileIDContainer').addEventListener('fileProcessorCustomAction', (event: CustomEvent<string>) => {
557+
const actionName = event.detail;
558+
// Perform your action
558559
});
559560
```
560561

0 commit comments

Comments
 (0)