From: Cyperghost Date: Wed, 31 Jul 2024 06:47:52 +0000 (+0200) Subject: Change the styling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8dd6b59c32d8b878598f103566970124b8b026c9;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Change the styling --- 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) => {