Skip to content

Commit 8dd6b59

Browse files
committed
Change the styling
1 parent 8d5bf36 commit 8dd6b59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/php/api/form_builder/form_fields.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ __The field supports other settings:__
535535
- `context(array $context)` and `getContext()` can be used to set and get the context of the file processor.
536536
- `singleFileUpload($singleFileUpload = true)` and `isSingleFileUpload()` can be used to set and check if only one file can be uploaded.
537537

538-
__Example:__
538+
Example:
539539

540540
```php
541541
FileProcessorFormField::create('exampleFileID')
@@ -545,12 +545,12 @@ FileProcessorFormField::create('exampleFileID')
545545
->bigPreview()
546546
```
547547

548-
__Additional Buttons__
548+
#### Additional Buttons
549549

550550
Additional buttons can be added with `addActionButton(string $actionName, string $title, string $template, string $application = 'wcf', ?IFontAwesomeIcon $icon = null)`.
551551
When this button is pressed, the `fileProcessorCustomAction` event is fired, which can be used via JavaScript to perform additional actions.
552552

553-
__Example:__
553+
Example:
554554

555555
```ts
556556
document.getElementById('exampleFileID').parentElement.addEventListener('fileProcessorCustomAction', (event) => {

0 commit comments

Comments
 (0)