定制 kit-tools/yii2-webui-popover 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kit-tools/yii2-webui-popover

Composer 安装命令:

composer require kit-tools/yii2-webui-popover

包简介

WebUI Popover widget for Yii2.

README 文档

README

This widget is a Yii 2 wrapper of WebUI-Popover plugin.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist kit-tools/yii2-webui-popover "*"

or add

"kit-tools/yii2-webui-popover": "*"

to the require section of your composer.json file.

Usage

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

use kittools\webuipopover\WebUIPopover;

echo WebUIPopover::widget([
    'label' => 'Button popup',
    'tagName' => 'button',
    'body' => 'Content popup'
]);

The following example will show the content enclosed between the begin() and end() calls within the popover box:

WebUIPopover::begin([
    'label' => 'Button popup',
    'tagName' => 'button',
    'tagOptions' => [
        'class' => 'btn btn-success',
    ],
    'pluginOptions' => [
        'placement' => 'right',
        'animation' => 'pop',
        'title' => 'Popover title',
        'onShow' => 'function($element) {console.log($element);}'
    ],
]);

echo 'Content popup';

WebUIPopover::end();

Checkout the documentation for further information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-03-09