Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bluezed/yii2-floatthead
- Owner: bluezed
- License: bsd-3-clause
- Created: 2015-07-09T07:42:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-04T13:06:12.000Z (over 1 year ago)
- Last Synced: 2024-09-24T03:19:36.754Z (3 months ago)
- Topics: javascript, jquery, php, yii2, yii2-widgets
- Language: PHP
- Homepage: http://mkoryak.github.io/floatThead/
- Size: 12.7 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]);
```