Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
calendar.phtml
Go to the documentation of this file.
1 <?php
6 ?>
7 <?php
13 ?>
14 
15 <script>
16 require([
17  "jquery",
18  "jquery/ui"
19 ], function($){
20 
21 //<![CDATA[
22  $.extend(true, $, {
23  calendarConfig: {
24  dayNames: <?= /* @escapeNotVerified */ $days['wide'] ?>,
25  dayNamesMin: <?= /* @escapeNotVerified */ $days['abbreviated'] ?>,
26  monthNames: <?= /* @escapeNotVerified */ $months['wide'] ?>,
27  monthNamesShort: <?= /* @escapeNotVerified */ $months['abbreviated'] ?>,
28  infoTitle: "<?= /* @escapeNotVerified */ __('About the calendar') ?>",
29  firstDay: <?= /* @escapeNotVerified */ $firstDay ?>,
30  closeText: "<?= /* @escapeNotVerified */ __('Close') ?>",
31  currentText: "<?= /* @escapeNotVerified */ __('Go Today') ?>",
32  prevText: "<?= /* @escapeNotVerified */ __('Previous') ?>",
33  nextText: "<?= /* @escapeNotVerified */ __('Next') ?>",
34  weekHeader: "<?= /* @escapeNotVerified */ __('WK') ?>",
35  timeText: "<?= /* @escapeNotVerified */ __('Time') ?>",
36  hourText: "<?= /* @escapeNotVerified */ __('Hour') ?>",
37  minuteText: "<?= /* @escapeNotVerified */ __('Minute') ?>",
38  dateFormat: $.datepicker.RFC_2822,
39  showOn: "button",
40  showAnim: "",
41  changeMonth: true,
42  changeYear: true,
43  buttonImageOnly: null,
44  buttonImage: null,
45  showButtonPanel: true,
46  showWeek: true,
47  timeFormat: '',
48  showTime: false,
49  showHour: false,
50  showMinute: false
51  }
52  });
53 
54  enUS = <?= /* @escapeNotVerified */ $enUS ?>; // en_US locale reference
55 //]]>
56 
57 });
58 </script>