From 8c230e7dd8a372f601a2e0048bda9ce15a79e364 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 25 Apr 2024 14:46:55 +0200 Subject: [PATCH] Document `NoticeFormNode` Closes #408 --- docs/php/api/form_builder/form_fields.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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. -- 2.20.1