Skip to content

Commit

Permalink
Merge pull request #143 from christopherdarling/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkleiner committed Feb 15, 2023
2 parents 59e6e46 + b5a509d commit 82d95cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ use UncleCheese\DisplayLogic\Forms\Wrapper;
```

## Dealing with non-standard form fields
Sometimes you will want to wrap display logic around a form field that does not use the standard FormField template, such as GridField or LiteralField. For these cases, you can wrap the form field in UncleCheese\DisplayLogic\Wrapper.
Sometimes you will want to wrap display logic around a form field that does not use the standard FormField template, such as GridField or LiteralField. For these cases, you can wrap the form field in UncleCheese\DisplayLogic\Forms\Wrapper.
```php
$fields->addFieldToTab("Root.Main", Wrapper::create(
LiteralField::create("foo","<h2>Hello</h2>")
Expand Down

0 comments on commit 82d95cc

Please sign in to comment.