Datepager demo

Showing 1-7 of 7 items.
#StartTitle
12006/01/10MacBook Pro released
22006/03/09Google Docs introduced
32006/03/21Twitter founded
42006/07/11Support Windows 95 and 98 stops
52006/08/26jQuery released
62006/10/09Google acquires YouTube
72006/11/30Windows Vista released

Yii2 Datepager lets you do paging on date values in the Yii framework 2.0. On this page it is shown in it's default operation, 'out of the box'.

The data used are the same as those from my Dateline-demo.

<?php

use sjaakp\datepager\ActiveDataProvider;
use sjaakp\datepager\DatePager;

$query = Event::find()->orderBy('start');

$dataProvider = new ActiveDataProvider([
    'query' => $query,
    'dateAttribute' => 'start',
]);
?>

<?= DatePager::widget([
    'dataProvider' => $dataProvider,
]) ?>

<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        ['class' => 'yii\grid\SerialColumn'],

        'start:date',
        'title',
    ],
]); ?>