Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table id="dg" class="" toolbar="#dg-toolbar">
- <thead data-options="frozen:true">
- <th field="ktp" sortable="true" fixed="true" width="120">KTP</th>
- <th field="people_name" sortable="true" fixed="true" width="180">Name</th>
- <th field="people_gender" sortable="true" fixed="true" width="80" align="center">Gender</th>
- </thead>
- <thead>
- <tr>
- <th field="ktp" sortable="true" fixed="true" width="120">KTP</th>
- <th field="people_name" sortable="true" fixed="true" width="180">Name</th>
- <th field="people_gender" sortable="true" fixed="true" width="80" align="center">Gender</th>
- <th field="phone" sortable="true" fixed="true" width="100">Phone</th>
- <th field="state" sortable="true" fixed="true" width="130">State</th>
- <th field="city" sortable="true" fixed="true" width="130">City</th>
- <th field="address" sortable="true" fixed="true" width="190">Address</th>
- <th field="zip_code" sortable="true" fixed="true" width="100">Zip Code</th>
- <th field="is_internal" sortable="true" fixed="true" width="100" align="center" formatter="libs.functions.formatStatus">Status</th>
- <th field="unit_name" sortable="true" fixed="true" width="180">Unit Name</th>
- </tr>
- </thead>
- </table>
- <?php
- $script = <<<SCRIPT
- $('#dg').datagrid({
- fit: true,
- singleSelect: true,
- // fitColumns:true,
- pageList: [10,15,20,50,100],
- rownumbers: true,
- pageSize: 20,
- url: URL, // ganti url get data
- pagination: true,
- });
- SCRIPT;
- $this->registerJs($script, \yii\web\View::POS_READY);
- ?>
Add Comment
Please, Sign In to add comment