kartik-v/yii2-tabs-x
Composer 安装命令:
composer require kartik-v/yii2-tabs-x
包简介
A supercharged Bootstrap tabs widget with ability to align tabs in multiple ways, add borders, rotated titles, and more.
README 文档
README
yii2-tabs-x
An extended tabs widget for Yii Framework 2 based on the bootstrap-tabs-x jQuery plugin by Krajee. This plugin includes various CSS3 styling enhancements and various tweaks to the core Bootstrap Tabs plugin. The extension supports Bootstrap 5.x or 4.x or 3.x library versions. It also helps you align tabs in multiple ways, add borders, achieve rotated/sideways titles, load tab content via ajax, and more.
Features
The plugin offers these enhanced features:
- Supports various tab opening directions:
above(default),below,right, andleft. - Allows you to box the tab content in a new
borderedstyle. This can work with any of the tab directions above. - Allows you to align the entire tab content to the
left(default),center, orrightof the parent container/page. - Automatically align & format heights and widths for bordered tabs for
rightandleftpositions. - Allows a rotated
sidewaystab header orientation for therightandlefttab directions. - Auto detect overflowing header labels for
sidewaysorientation (with ellipsis styling) and display full label as a title on hover.
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-tabs-x "@dev"
or add
"kartik-v/yii2-tabs-x": "@dev"
to the require section of your composer.json file.
Usage
TabsX
use kartik\tabs\TabsX; echo TabsX::widget([ 'position' => TabsX::POS_ABOVE, 'align' => TabsX::ALIGN_LEFT, 'items' => [ [ 'label' => 'One', 'content' => 'Anim pariatur cliche...', 'active' => true ], [ 'label' => 'Two', 'content' => 'Anim pariatur cliche...', 'headerOptions' => ['style'=>'font-weight:bold'], 'options' => ['id' => 'myveryownID'], ], [ 'label' => 'Dropdown', 'items' => [ [ 'label' => 'DropdownA', 'content' => 'DropdownA, Anim pariatur cliche...', ], [ 'label' => 'DropdownB', 'content' => 'DropdownB, Anim pariatur cliche...', ], ], ], ], ]);
Sticky Tabs
You can provides pushState (back and forward button support) to Bootstrap tabs. You can enable or disable sticky tabs behaviour by setting enableStickyTabs property. This will use the jquery.stickytabs plugin to enable the sticky tabs push state behavior. If you want to change the sticky tabs plugin settings you can set the stickyTabsOptions property.
echo TabsX::widget([ 'enableStickyTabs' => true, 'stickyTabsOptions' => [ 'selectorAttribute' => 'data-target', 'backToTop' => true, ], 'items' => [ // ... items here ] ]);
License
yii2-tabs-x is released under the BSD-3-Clause License. See the bundled LICENSE.md for details.
kartik-v/yii2-tabs-x 适用场景与选型建议
kartik-v/yii2-tabs-x 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.42M 次下载、GitHub Stars 达 30, 最近一次更新时间为 2014 年 08 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「jquery」 「bootstrap」 「modal」 「tabs」 「extended」 「tabs-x」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kartik-v/yii2-tabs-x 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kartik-v/yii2-tabs-x 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kartik-v/yii2-tabs-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
统计信息
- 总下载量: 1.42M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 31
- 点击次数: 31
- 依赖项目数: 30
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-08-12