Calendar

Calendar

Year, Month and day

The calendar allows you to show an overview of events.

Booked

Available

<div id="62bec505d90677.91773962" class="c-calendar c-calendar--secondary" eventsUrl="/assets/data/eventsDummyData.json" bookingUrl="" weekStart="Monday" size="large" color="secondary" js-toggle-class="ad" data-uid="62bec505d9077">   
    <div id="calendarContainer"></div>

    <!-- modal.blade.php -->
<dialog id="examplemodalid" class="c-modal c-modal--is-modal c-modal--padding-3 c-modal--overlay-dark" role="dialog" aria-modal="true"
    aria-labelledby="modal__label__examplemodalid" data-uid="62bec505d97a5">

    <header class="c-modal__header">
                    <!-- typography.blade.php  -->
<h2 id="modal__label__examplemodalid" class="c-typography c-typography__variant--h2" data-uid="62bec505d9c63">
    
</h2>        
        <button id="62bec505d9cd0" class="c-button c-modal__close c-button__basic c-button__basic--default c-button--lg c-button--icon-only" href="" target="_top" data-close="" type="button" aria-pressed="false" data-uid="62bec505d9ccb">   
    <span class="c-button__label">
        
                    <span class="c-button__label-icon ">
                <!-- icon.blade.php -->
    <i id="62bec505d9daa" class="c-icon c-icon--size-lg material-icons" translate="no" role="img" alt="" data-uid="62bec505d9da4">
                    close
            </i>
            </span>
        
        
    </span>
</button>    </header>

    <section class="c-modal__content">

        
        

        <div class="c-calendar__event-list" js-toggle-item="1" js-toggle-class="">

            <div class="grid">

                <div class="grid-sm-6 grid-md-6">
                    <div class="booked">
                        <h2>Booked</h2>
                        <div class="booked__list"></div>
                    </div>        
                </div>
            
                <div class="grid-sm-6 grid-md-6">
                    <div class="available">
                        <h2>Available</h2>
                        <div class="available__list"></div>
                        <button id="62bec505d9347" class="c-button postEventButton c-button__filled c-button__filled--secondary c-button--md" href="" target="_top" js-toggle-trigger="" js-toggle-item="" type="filled" aria-pressed="false" data-uid="62bec505d9342">   
    <span class="c-button__label">
        
        
                    <span class="c-button__label-text ">
                book
            </span>
        
    </span>
</button>                    </div>      
                </div>
            </div>
            
        </div>

        
            </section>

    
    </dialog>
    <div id="organizerContainer" class="u-display--none"></div>
</div>
@calendar(
    [
        'color' => 'secondary',
        'size' => 'large',
        'eventsUrl' => '/assets/data/eventsDummyData.json',
        'bookingUrl' => ''
    ]
)
@endcalendar

Blade component parameters

Key Default value Type Available values Description
componentElement div string - -
size large string - -
get string - -
set string - -
color default string - -
weekStart Monday string - -
id string - The DOM id of the component.
classList [] array - Array containing wrapping classes array
attributeList [] array - Array containing keys and values rendered as attributes
containerAware false boolean true/false Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component.
Settings location: /mnt/persist/www/docroot_styleguide_v2/source/library/source/php/Component/Calendar/calendar.json