Skip to content

Commit 02fc8c4

Browse files
committed
Allow to configure min and max dates for date picker component
1 parent e0c7fae commit 02fc8c4

File tree

1 file changed

+2
-0
lines changed
  • lib/internal/Magento/Framework/Data/Form/Element

1 file changed

+2
-0
lines changed

lib/internal/Magento/Framework/Data/Form/Element/Date.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ public function getElementHtml()
167167
'buttonImage' => $this->getImage(),
168168
'buttonText' => 'Select Date',
169169
'disabled' => $this->getDisabled(),
170+
'minDate' => $this->getMinDate(),
171+
'maxDate' => $this->getMaxDate(),
170172
],
171173
]
172174
)

0 commit comments

Comments
 (0)