From d8518c2d148b407aa407bf8f1f7a4cb9683dc8a4 Mon Sep 17 00:00:00 2001 From: yassipad Date: Tue, 27 Aug 2019 16:22:09 +0200 Subject: [PATCH] remove from index and detail --- src/NestedForm.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/NestedForm.php b/src/NestedForm.php index ffe4fd6..6bccae3 100644 --- a/src/NestedForm.php +++ b/src/NestedForm.php @@ -153,6 +153,19 @@ class NestedForm extends Field * @var Panel|Field|NestedForm */ protected $returnContext; + /** + * Indicates if the element should be shown on the index view. + * + * @var \Closure|bool + */ + public $showOnIndex = false; + + /** + * Indicates if the element should be shown on the detail view. + * + * @var \Closure|bool + */ + public $showOnDetail = false; /** * Create a new nested form.