A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bluezed/yii2-floatThead below:

bluezed/yii2-floatThead: This is a Yii 2 wrapper for jquery.floatThead a floating/locked/sticky/fixed table header plugin that requires no special CSS and supports window and overflow scrolling.

This is a Yii 2 wrapper for jquery.floatThead a floating/locked/sticky/fixed table header plugin that requires no special CSS and supports window and overflow scrolling.

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bluezed/yii2-float-thead "*"

or add

"bluezed/yii2-float-thead": "*"

to the require section of your composer.json file.

In your view file.

<table id="myTable">
    <tr>
        <th>Col1</th>
        <th>Col2</th>
    </tr>
    <tr>
        <td>Data1</td>
        <td>Data2</td>
    </tr>
</table>

<?php
\bluezed\floatThead\FloatThead::widget(
    [
        'tableId' => 'myTable', 
        'options' => [
            'top'=>'50'
        ]
    ]
);
?>

If you only want to register the Assets without directly applying the plugin to a table you can use this command:

\bluezed\floatThead\FloatThead::widget(['registerOnly'=>true]);

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4