2017 © Pedro Peláez
 

yii2-extension yii2-datatables

Yii2 Extension for DataTables jQuery plug-in

image

mbischof/yii2-datatables

Yii2 Extension for DataTables jQuery plug-in

  • Sunday, March 4, 2018
  • by mbischof
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Yii2 DataTables

Yii2 Widget for DataTables plug-in for jQuery, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require mbischof/yii2-datatables

or add, (*4)

"mbischof/yii2-datatables": "~1.0"

to the require section of your composer.json file., (*5)

Basic Usage

= \mbi\datatables\BootstrapDatatableWidget::begin([
    'tableOptions' => [
        'class' => 'table table-striped table-bordered',
        'width' => '100%',
        'cellspacing' => 0
    ]
]) ?>

    <thead>
        <tr>
            <th>Id</th>
            <th>Firstname</th>
            <th>Lastname</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    <?php foreach ($persons as $person): ?>
        <tr>
            <td style="text-align: center"><?= $person->id; ?></td>
            <td><?= $person->firstname; ?></td>
            <td><?= $person->lastname; ?></td>
            <td style="text-align: center"><?= Html::a(FA::icon('trash'), ['person/delete', 'id' => $person->id], ['data-method' => 'post']); ?></td>
        </tr>
    <?php endforeach; ?>
    </tbody>

= \mbi\datatables\BootstrapDatatableWidget::end(); ?>

The Versions

04/03 2018

dev-master

9999999-dev https://github.com/mbischof/yii2-datatables

Yii2 Extension for DataTables jQuery plug-in

  Sources   Download

MIT

The Requires

 

yii2 jquery datatables widget

04/03 2018

1.0.1

1.0.1.0 https://github.com/mbischof/yii2-datatables

Yii2 Extension for DataTables jQuery plug-in

  Sources   Download

MIT

The Requires

 

yii2 jquery datatables widget

04/03 2018

1.0

1.0.0.0 https://github.com/mbischof/yii2-datatables

Yii2 Extension for DataTables jQuery plug-in

  Sources   Download

MIT

The Requires

 

yii2 jquery datatables widget