[WIP] Refactor project
This commit is contained in:
39
resources/views/vendor/boilerplate/plugins/demo/fullcalendar.blade.php
vendored
Normal file
39
resources/views/vendor/boilerplate/plugins/demo/fullcalendar.blade.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
@include('boilerplate::load.fullcalendar')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('#calendar').fullCalendar({
|
||||
headerToolbar: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth'
|
||||
},
|
||||
buttonIcons: false,
|
||||
navLinks: true,
|
||||
editable: true,
|
||||
dayMaxEvents: true,
|
||||
events: 'https://fullcalendar.io/demo-events.json?overload-day'
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@component('boilerplate::card', ['color' => 'success', 'title' => 'FullCalendar'])
|
||||
Usage :
|
||||
<pre>
|
||||
@include('boilerplate::load.fullcalendar')
|
||||
@push('js')
|
||||
<script>
|
||||
var calendar = $('#calendar').fullCalendar({
|
||||
buttonIcons: false,
|
||||
});
|
||||
</script>
|
||||
@endpush</pre>
|
||||
|
||||
<div id='calendar'></div>
|
||||
|
||||
@slot('footer')
|
||||
<div class="text-muted small text-right">
|
||||
<a href="https://fullcalendar.io" target="_blank">FullCalendar</a>
|
||||
</div>
|
||||
@endslot
|
||||
@endcomponent
|
||||
Reference in New Issue
Block a user