mikk150/yii2-iframe-resizer

yii2 iframe resizer widget

Installs: 5 184

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-03-30 16:04:01 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