PHP code example of pvsaintpe / yii2-float-thead
1. Go to this page and download the library: Download pvsaintpe/yii2-float-thead library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pvsaintpe / yii2-float-thead example snippets
<table id="myTable">
<tr>
<th>Col1</th>
<th>Col2</th>
</tr>
<tr>
<td>Data1</td>
<td>Data2</td>
</tr>
</table>
\pvsaintpe\floatthead\FloatThead::widget(
[
'tableId' => 'myTable',
'options' => [
'top'=>'50'
]
]
);
\pvsaintpe\floatthead\FloatThead::widget(['registerOnly'=>true]);