mikk150 / yii2-iframe-resizer
yii2 iframe resizer widget
Installs: 5 960
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- npm-asset/iframe-resizer: ^3.0.0 || ^4.0.0
- yiisoft/yii2: ^2.0
Requires (Dev)
- codeception/base: ^2.5
This package is auto-updated.
Last update: 2024-10-30 17:22:40 UTC
README
This extension generates auto resizing iframes
Usage
// in your view echo mikk150\iframeresizer\IframeResizerWidget::widget([ 'resizerOptions' => [ 'checkOrigin' => false, 'initCallback' => new yii\web\JsExpression('function (e) {console.log(e)}') ], 'options' => [ 'src' => 'http://example.org' ], ])
Be sure that your iframe content has mikk150\iframeresizer\IframeResizerContentWindowAsset
registered