Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/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.
https://github.com/bluezed/yii2-floatthead

javascript jquery php yii2 yii2-widgets

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        

yii2-floatThead
=====================
This is a Yii 2 wrapper for [jquery.floatThead](http://mkoryak.github.io/floatThead/) a floating/locked/sticky/fixed table header plugin that requires no special CSS and supports window and overflow scrolling.

Installation
------------

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

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.

How to use
----------

In your view file.

```php


Col1
Col2


Data1
Data2

'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:
```php
\bluezed\floatThead\FloatThead::widget(['registerOnly'=>true]);
```