Magento 2 – How to add calendar in admin configuration options?

Magewallet | Magento 2 Extensions, Themes & Solutions

Magento 2 – How to add calendar in admin configuration options?

Recently I have found one solution to add calendar in system configuration options. Lets discuss in detail.

In order to add calendar in system configuration options, we have to add one system field and require one Block file.

Use below code to add system field.

Now lets create Block file – Calendar.php

Lets discuss some terms used in this block.
Magewallet – Vendor Name
SytemCalendar – Module Name
calendar.png – add calendar icon image at pub/media/systemcalendar/ directory

Thats it. Enjoy Magento 2!! Enjoy Magewallet!!!

admin

1 Comment

Kiley Dilliard

34 mins ago

Thanks for the very useful post!! It helps me to solve one case in my custom project..on more thing can you please write tips to add color picker in system configuration.

Leave Comment

Newsletter

Latest Tweets