golles/yii2-widgets 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

golles/yii2-widgets

Composer 安装命令:

composer require golles/yii2-widgets

包简介

My Yii2 widgets that I want to share with the world

README 文档

README

This repository contains my widgets for the Yii2 Framework.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist golles/yii2-widgets "*"

or add

"golles/yii2-widgets": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code:

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.

Note, this only works on iframes on the same domain.

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'
                       
     ]
]);

统计信息

  • 总下载量: 161
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-03-04