From: Marcel Werk Date: Thu, 25 Apr 2024 12:46:55 +0000 (+0200) Subject: Document `NoticeFormNode` X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c230e7dd8a372f601a2e0048bda9ce15a79e364;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Document `NoticeFormNode` Closes #408 --- diff --git a/docs/php/api/form_builder/form_fields.md b/docs/php/api/form_builder/form_fields.md index 039048bb..3f392cd9 100644 --- a/docs/php/api/form_builder/form_fields.md +++ b/docs/php/api/form_builder/form_fields.md @@ -169,6 +169,19 @@ These methods do **not**, however, restrict the number of text rows that can be The class implements `IAttributeFormField`, `ICssClassFormField`, `IFilterableSelectionFormField`, and `IImmutableFormField`. +### `NoticeFormNode` + +`NoticeFormNode` is a form node that shows a notice without any surrounding HTML code. + +Example: + +```php +NoticeFormNode::create('name') + ->type(NoticeFormNodeType::Success) + ->languageItem('name_of_language_item'); +``` + + ### `RadioButtonFormField` `RadioButtonFormField` is a form fields that allows the selection of a single option out of a predefined list of available options using radiobuttons.