4

I have some data on front-end , which I want to show on specific days in the calendar. I got this code to show the calendar on the front end .

 <?php 
      $a = 'some text';
      $b = 'some other text'
 ?>

<div id="xxx" name="xxx"></div>
<script>
 require([
      "jquery",
      "mage/calendar"
 ], function($){
     $("#xxx").calendar({
          buttonText:"<?php echo __('Select Date') ?>",
     });
   });

Can any one guide , how to customize calendar days to show data on the calendar.Or is it more advisable to use an external calendar plugin??

0

Please try with below code, I hope it will work for you.

Calendar.setup({
        inputField: "delivery_date",
        ifFormat: "%d/%m/%Y",
        showsTime: false,
        button: "delivery_date",
        align: "Bl",
        singleClick : true,
        dateText: 'specific days'
    })
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.