keygenqt/yii2-fancybox3

为FancyBox3库提供扩展的yii

安装: 82

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

开放问题: 0

类型:yii2-extension

1.0.1 2020-05-31 11:48 UTC

This package is auto-updated.

Last update: 2024-09-24 01:51:19 UTC


README

Packagist Downloads

允许使用FancyBox3库的yii2扩展。

安装

安装此扩展的首选方式是通过composer

"require": {
    "keygenqt/yii2-fancybox3": "@dev"
}

使用

HTML 示例

use keygenqt\fancyBox3\FancyBox3;

<?php FancyBox3::begin([

    'nameBtn' => 'Open FancyBox3',

    'btnOption' => [
        'class' => 'btn'
    ],
    'jsOption' => [
        'focus' => false,
    ]
]) ?>

    <div>
        <h2>Hello!</h2>
        <p>This is animated content! Cool, right?</p>
    </div>

<?php FancyBox3::end() ?>

YouTube 示例

use keygenqt\fancyBox3\FancyBox3;

<?= FancyBox3::widget([

    'nameBtn' => 'Open YouTube',
    'src' => 'https://www.youtube.com/watch?v=SRnzisLnnUo',

    'btnOption' => [
        'class' => 'btn'
    ],
    'jsOption' => [
        'focus' => false,
    ]
]) ?>

许可证

Copyright 2017-2024 Vitaliy Zarubin

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://apache.ac.cn/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.