I just have a quick simple question. The date range picker on the dashboard has several options such as: Today, Yesterday, Last 7 Days, Last 30 Days, This Month,Last Month, and Custom Range. Currently the default is at “Today”, what is the easiest way to set the default to “last 30 days”? below is the html code for the daterangepicker, Thank you.
<span class=”m-subheader__daterange” id=”m_dashboard_daterangepicker”>
<span class=”m-subheader__daterange-date m–font-brand”></span>
<i class=”la la-angle-down”></i>
You can check the datarangepicker plugin’s official documentation here:
The dashboard daterangepicker example is initialized in “theme\src\js\app\custom\dashboard.js” script under “daterangepickerInit” function so you can customize it according to your requirements by referring to the documentation.
Got it! Thank you Sean!
You must be logged in to reply to this topic.