dev-master
9999999-dev http://golles.nlMy Yii2 widgets that I want to share with the world
The Requires
by Sander Gols
yii2 yii 2 widget widgets
My Yii2 widgets that I want to share with the world
This repository contains my widgets for the Yii2 Framework., (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist golles/yii2-widgets "*"
or add, (*4)
"golles/yii2-widgets": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code:, (*6)
This widget generates an iframe object in the dom that adjusts it's height automatically based on the height of the iframes content. The result is that it looks like the iframe content is normal page content, it won't look like there is an iframe at all., (*7)
Note, this only works on iframes on the same domain., (*8)
echo IframeAutoHeight::widget([ 'intervalTime' => 500, 'noIframeSupportText' => 'Your browser does not support iframes.', 'iframeOptions' => [ 'id' => 'webalizerIframe', 'src' => 'http://mydomain.com/iframe.html', 'width' => '100%', 'height' => '500px', 'frameborder' => '0', 'scrolling' => 'no' ] ]);
My Yii2 widgets that I want to share with the world
yii2 yii 2 widget widgets