From 7b5c5d1148ed0b341b5b2c2bf9c2ec614b5913aa Mon Sep 17 00:00:00 2001 From: Tibor Kotosz Date: Thu, 5 Apr 2018 10:02:30 +0200 Subject: [PATCH] Allow to configure min and max dates for date picker component --- lib/internal/Magento/Framework/Data/Form/Element/Date.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/internal/Magento/Framework/Data/Form/Element/Date.php b/lib/internal/Magento/Framework/Data/Form/Element/Date.php index ef85876521d23..c4661c92e8c49 100644 --- a/lib/internal/Magento/Framework/Data/Form/Element/Date.php +++ b/lib/internal/Magento/Framework/Data/Form/Element/Date.php @@ -167,6 +167,8 @@ public function getElementHtml() 'buttonImage' => $this->getImage(), 'buttonText' => 'Select Date', 'disabled' => $this->getDisabled(), + 'minDate' => $this->getMinDate(), + 'maxDate' => $this->getMaxDate(), ], ] )