kartik-v/yii2-popover-x
Composer 安装命令:
composer require kartik-v/yii2-popover-x
包简介
An extended bootstrap 3.0 popover widget which combines both the bootstrap popover and modal features and includes various new styling enhancements.
README 文档
README
yii2-popover-x
An extended popover widget for Yii Framework 2 based on the bootstrap-popover-x jQuery plugin by Krajee. This plugin
is an extended popover JQuery plugin which combines both the popover and bootstrap modal features and includes various new styling enhancements. This widget
can be setup just like the builtin yii\bootstrap\Modal, with some additional enhancements.
NOTE: Refer the CHANGE LOG for details on changes to various releases.
Features
The plugin offers these enhanced features:
- The extended popover can be rendered just like a bootstrap modal dialog with the bootstrap popover styling. Since the plugin extends the bootstrap modal, all features of the bootstrap modal and its methods are also available.
- Adds a popover footer along with header. Configuration of the HTML content for the popover is much easier, just like a bootstrap modal.
- Specially styles and spaces out bootstrap buttons added in popover footer.
- Add a close icon/button to a popover window.
- Configure various prebuilt styles/templates. In addition to a default (grey), the bootstrap 3 contextual color styles of
primary,info,success,danger, andwarningcan be used. - Control popover placements with respect to the target element. The plugin supports 19 different placement options:
- auto
- auto-left
- auto-right
- auto-top
- auto-bottom
- horizontal
- vertical
- right
- left
- top
- bottom
- top top-left
- top top-right
- bottom bottom-left
- bottom bottom-right
- left left-top
- left left-bottom
- right right-top
- right right-bottom
- Specially style the popover arrow to be consistent for each contextual color and popover placement.
- Prebuilt CSS styles for controlling appearance and sizes of the popovers.
NOTE: This extension depends on the kartik-v/yii2-widgets extension which in turn depends on the yiisoft/yii2-bootstrap extension. Check the composer.json for this extension's requirements and dependencies. Note: Yii 2 framework is still in active development, and until a fully stable Yii2 release, your core yii2-bootstrap packages (and its dependencies) may be updated when you install or update this extension. You may need to lock your composer package versions for your specific app, and test for extension break if you do not wish to auto update dependencies.
Demo
You can see detailed documentation and examples on usage of the extension.
Installation
The preferred way to install this extension is through composer.
Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the
minimum-stabilitysettings for your application's composer.json.
Either run
$ php composer.phar require kartik-v/yii2-popover-x "dev-master"
or add
"kartik-v/yii2-popover-x": "dev-master"
to the require section of your composer.json file.
Usage
PopoverX
use kartik\popover\PopoverX; PopoverX::begin([ 'header' => 'Hello world', 'footer' => Html::button('View', ['class'=>'btn btn-primary']), 'toggleButton' => ['class'=>'btn btn-primary'], ]); echo '<p class="text-justify">' . 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.' . '</p>'; PopoverX::end();
License
yii2-popover-x is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.
kartik-v/yii2-popover-x 适用场景与选型建议
kartik-v/yii2-popover-x 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.58M 次下载、GitHub Stars 达 23, 最近一次更新时间为 2014 年 07 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「jquery」 「bootstrap」 「modal」 「extended」 「popover」 「modal-popover」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kartik-v/yii2-popover-x 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kartik-v/yii2-popover-x 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kartik-v/yii2-popover-x 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
Fork from ghosh/Micromodal. Tiny, dependency-free javascript library for creating accessible modal dialogs.
Make Filament modals draggable.
A Filament form component that displays repeater items in a table with modal-based editing.
A Laravel Nova field. To create a modal for creating or viewing related HasMany records without leaving the index page
统计信息
- 总下载量: 3.58M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 22
- 依赖项目数: 9
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-07-16