ivopetkov/navigation-menu-bearframework-addon
Composer 安装命令:
composer require ivopetkov/navigation-menu-bearframework-addon
包简介
Navigation menu addon for Bear Framework
README 文档
README
Addon for Bear Framework
This addon enables you to easily create multiple types of navigations for your website.
Download and install
Install via Composer
composer require ivopetkov/navigation-menu-bearframework-addon
Download an archive
Download the latest release from the GitHub page and include the autoload file.
include '/path/to/the/addon/autoload.php';
Enable the addon
Enable the addon for your Bear Framework application.
$app->addons->add('ivopetkov/navigation-menu-bearframework-addon');
Usage
<component src="navigation-menu"> <ul> <li><a>Button 1</a></li> <li><a>Button 2</a> <ul> <li><a>Button 2.1</a></li> <li><a>Button 2.2</a></li> <li><a>Button 2.3</a></li> </ul> </li> <li><a>Button 3</a></li> </ul> </component>
Attributes
type
The type of the navigation. Available values: horizontal-down, vertical-left, vertical-right, list-vertical, list-horizontal
moreItemHtml
The HTML code for the more item. Must contain li and ul tags. Example: <li><a>...</a><ul></ul></li>
class
HTML class attribute value
style
HTML style attribute value
Examples
The navigation will be horizontal and submenus will show bellow. If there are too many first level items, a more item will be shown.
<component src="navigation-menu" type="horizontal-down"> <ul> <li><a>Button 1</a></li> <li><a>Button 2</a> <ul> <li><a>Button 2.1</a></li> <li><a>Button 2.2</a></li> <li><a>Button 2.3</a></li> </ul> </li> <li><a>Button 3</a></li> </ul> </component>
The navigation will be vertical and submenus will open to the right.
<component src="navigation-menu" type="vertical-right"> <ul> <li><a>Button 1</a></li> <li><a>Button 2</a> <ul> <li><a>Button 2.1</a></li> <li><a>Button 2.2</a></li> <li><a>Button 2.3</a></li> </ul> </li> <li><a>Button 3</a></li> </ul> </component>
License
Navigation menu addon for Bear Framework is open-sourced software. It's free to use under the MIT license. See the license file for more information.
Author
This addon is created by Ivo Petkov. Feel free to contact me at @IvoPetkovCom or ivopetkov.com.
ivopetkov/navigation-menu-bearframework-addon 适用场景与选型建议
ivopetkov/navigation-menu-bearframework-addon 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 2.35k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 04 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Bear Framework addon」 「navigation menu」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ivopetkov/navigation-menu-bearframework-addon 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ivopetkov/navigation-menu-bearframework-addon 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ivopetkov/navigation-menu-bearframework-addon 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Emails addon for Bear Framework
Bear CMS standalone
Dropzone field for Laravel Backpack
This ConcreteCMS/concrete5 addon installs a block type that when added to a page allows you to redirect visitors to this page to another page that you specify or an external URL.
统计信息
- 总下载量: 2.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-25