2017 © Pedro Peláez
 

yii2-extension yii2-widgets

My Yii2 widgets that I want to share with the world

image

golles/yii2-widgets

My Yii2 widgets that I want to share with the world

  • Wednesday, March 4, 2015
  • by golles
  • Repository
  • 1 Watchers
  • 0 Stars
  • 119 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 Widgets

This repository contains my widgets for the Yii2 Framework., (*1)

Installation

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)

Usage

Once the extension is installed, simply use it in your code:, (*6)

IframeAutoHeight

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'

     ]
]);

The Versions

04/03 2015

dev-master

9999999-dev http://golles.nl

My Yii2 widgets that I want to share with the world

  Sources   Download

The Requires

 

yii2 yii 2 widget widgets