Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voskobovich/yii2-match-height-asset
A responsive equal heights jQuery plugin for Yii2
https://github.com/voskobovich/yii2-match-height-asset
Last synced: 2 days ago
JSON representation
A responsive equal heights jQuery plugin for Yii2
- Host: GitHub
- URL: https://github.com/voskobovich/yii2-match-height-asset
- Owner: voskobovich
- Created: 2016-01-31T14:01:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-31T14:55:39.000Z (almost 9 years ago)
- Last Synced: 2023-07-26T15:56:40.591Z (over 1 year ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 jquery.matchHeight.js asset
================================A responsive equal heights jQuery plugin for Yii2.
[![License](https://poser.pugx.org/voskobovich/yii2-match-height-asset/license.svg)](https://packagist.org/packages/voskobovich/yii2-match-height-asset)
[![Latest Stable Version](https://poser.pugx.org/voskobovich/yii2-match-height-asset/v/stable.svg)](https://packagist.org/packages/voskobovich/yii2-match-height-asset)
[![Latest Unstable Version](https://poser.pugx.org/voskobovich/yii2-match-height-asset/v/unstable.svg)](https://packagist.org/packages/voskobovich/yii2-match-height-asset)
[![Total Downloads](https://poser.pugx.org/voskobovich/yii2-match-height-asset/downloads.svg)](https://packagist.org/packages/voskobovich/yii2-match-height-asset)Support
---
[GutHub issues](https://github.com/voskobovich/yii2-match-height-asset/issues).Plugin
---
[Demo](http://brm.io/jquery-match-height-demo/).[Documentation](https://github.com/liabru/jquery-match-height).
[Home page](http://brm.io/jquery-match-height/).
Usage
---Register the asset in the code view
``````
or in your AssetBundle
```
class AppAsset extends AssetBundle
{
...
public $depends = [
...
'voskobovich\matchheight\MatchHeightAsset'
];
}
```
and then execute JS code in view
```content
$this->registerJs('$(".block-name").matchHeight();')
?>
```
or
```
content
contentregisterJs('$("body").matchHeight();') ?>
```Installation
---The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist voskobovich/yii2-match-height-asset "~1.0"
```or add
```
"voskobovich/yii2-match-height-asset": "~1.0"
```to the require section of your `composer.json` file.