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

1.2.2 2024-02-01 15:40 UTC

This package is auto-updated.

Last update: 2024-10-30 17:22:40 UTC


README

This extension generates auto resizing iframes

Build Status codecov

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