Integration with Bootstrap

You can integrate the Scheduler library with the Bootstrap framework. To add Scheduler in a Bootstrap application follow the steps given below:

1. Include the dhtmlxScheduler files to the app:

<script src="../../codebase/dhtmlxscheduler.js?v=5.2.5" 
    type="text/javascript" charset="utf-8"></script>
<script src="../../codebase/ext/dhtmlxscheduler_year_view.js?v=5.2.5" 
    type="text/javascript" charset="utf-8"></script>

2. Specify the HTML markup for the Bootstrap elements and add a Scheduler container and header elements, as in:

<div class="container-fluid">
    <div class="navbar navbar-inverse">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">dhtmlxScheduler</a>
        </div>
    </div>
 
    <!--A container for Scheduler-->
    <div class="dhx_cal_container panel" id="scheduler_here">    
        <!--The standard set of  Scheduler 'divs'-->    
    </div>
</div>

3. Initialize and configure Scheduler in a usual way:

scheduler.config.first_hour = 8;
scheduler.config.limit_time_select = true;
 
scheduler.init('scheduler_here',new Date(2017,5,30),"week");

Related sample:  Bootstrap layout

Back to top