geedmo/yamm3
Composer 安装命令:
composer require geedmo/yamm3
包简介
Yet another megamenu for Bootstrap 3.x
README 文档
README
This is Yet another megamenu for Bootstrap 3 from Twitter.
Lightweight and pure CSS megamenu that uses the standard navbar markup and the fluid grid system classes from Bootstrap 3. Work for fixed and responsive layout and has the facility to include (almost) any Bootstrap elements.
Demo
Here you can find Yamm for Bootstrap 4
Install with npm
npm install @geedmo/yamm3 --save
Install with bower
bower install yamm3 --save
Install via composer
{
"require": {
"geedmo/yamm3": "dev-master"
}
}
Markup
-
Reuse navbar markup and add class
.yammat the top. -
Then add your markup into the
.dropdown-menu -
Optionally use
.yamm-contentto wrap content with padding.
Example
<nav class="navbar yamm navbar-default " role="navigation">
...
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>
<ul class="dropdown-menu">
<li>
<div class="yamm-content">
<div class="row">
...
</li>
</ul>
</li>
</ul>
...
</nav>
Fullwidth
By default every mega-dropdown will take the content size so is possible to use add .yamm-fw to .dropdown to expand it fullwidth.
Yamm works better with fullwidth menus.
Example
<nav class="navbar yamm navbar-default " role="navigation">
...
<ul class="nav navbar-nav">
<li class="dropdown yamm-fw">
...
</li>
</ul>
...
</nav>
Javascript
If necessary, this code will prevent unexpected menu close when using some components (like accordion, forms, etc)
$(document).on('click', '.yamm .dropdown-menu', function(e) {
e.stopPropagation()
})
AngularJS
Check it at hjzheng/angular-mega-menu
Bugs and feature requests
Please first read the issue guidelines and search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.
Compile
Run the following commands in the repository folder
- npm install
- gulp
To compile yamm with demo
- gulp demo
License
- Licenced under MIT - details here
Sponsored content
geedmo/yamm3 适用场景与选型建议
geedmo/yamm3 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 12.62k 次下载、GitHub Stars 达 1.19k, 最近一次更新时间为 2013 年 11 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「bootstrap」 「megamenu」 「megadropdown」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 geedmo/yamm3 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 geedmo/yamm3 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 geedmo/yamm3 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
MegaMenu for Contao CMS
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Selectize Theme for Bootstrap 4
Cross browser time implementation using CSS and JQuery. Compatible with Twitter Bootstrap
The Attogram Framework provides developers a PHP skeleton starter site with a content module system, file-based URL routing, IP-protected backend, Markdown parser, jQuery and Bootstrap. Core modules available to add an integrated SQLite database with web admin, user system, and more.
统计信息
- 总下载量: 12.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1191
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-24