From 8dd6b59c32d8b878598f103566970124b8b026c9 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 31 Jul 2024 08:47:52 +0200 Subject: [PATCH] Change the styling --- docs/php/api/form_builder/form_fields.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/php/api/form_builder/form_fields.md b/docs/php/api/form_builder/form_fields.md index d315becc..73e5c4e7 100644 --- a/docs/php/api/form_builder/form_fields.md +++ b/docs/php/api/form_builder/form_fields.md @@ -535,7 +535,7 @@ __The field supports other settings:__ - `context(array $context)` and `getContext()` can be used to set and get the context of the file processor. - `singleFileUpload($singleFileUpload = true)` and `isSingleFileUpload()` can be used to set and check if only one file can be uploaded. -__Example:__ +Example: ```php FileProcessorFormField::create('exampleFileID') @@ -545,12 +545,12 @@ FileProcessorFormField::create('exampleFileID') ->bigPreview() ``` -__Additional Buttons__ +#### Additional Buttons Additional buttons can be added with `addActionButton(string $actionName, string $title, string $template, string $application = 'wcf', ?IFontAwesomeIcon $icon = null)`. When this button is pressed, the `fileProcessorCustomAction` event is fired, which can be used via JavaScript to perform additional actions. -__Example:__ +Example: ```ts document.getElementById('exampleFileID').parentElement.addEventListener('fileProcessorCustomAction', (event) => { -- 2.20.1