Yii v2 snippet guide

Comparing #141 with #142

Revision #142 was created by rackycz rackycz on Oct 6, 2019, 5:50:25 PM.

calendar

Content

[...]
I needed to show user a list of his events in a large calendar so I used library [fullcalendar](https://fullcalendar.io/).

Great demo which you can just copy and paste:
- https://fullcalendar.io/js/fullcalendar-3.0.0/demos/list-views.html
- ... just "view source" of the web and copy the js + html code, css and js files.

 
 
```css
 
/*I added this style to hide vertical scroll-bars*/
 
.fc-scroller.fc-day-grid-container{
 
  overflow: hidden !important;
 
}
 
```
 
Don't forget to use these files for example in your view like this:

```php
$this->registerCssFile('@web/css/fullcalendar/fullcalendar.css');
$this->registerCssFile('@web/css/fullcalendar/fullcalendar.print.css', ['media' => 'print']);
[...]