【文件属性】:
文件名称:mb-menu:简单的单选菜单
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-21 19:45:08
JavaScript
MB菜单
简单的菜单。
正在安装
ember install ember-mb-menu
基本用法
{{ #mb-menu items = items selected = selected on-select = " selected " as | item | }}
{{ item }}
{{ /mb-menu }}
selected可以是单个项目,也可以是用于多选的数组。
动作
on-select项目时发送
on-deselect项目时发送
on-toggle -选择或取消选择项目时发送
造型风格
class -类菜单(标准灰烬)
item-class每个项目的类别
selected-class赋予所选项目的类
事件冒泡
如果要防止单击事件冒泡,请传递bubbles=false ,它们将被吞噬。
发展
安装
git clone这个仓库
npm install
bower
【文件预览】:
mb-menu-master
----.jshintrc(518B)
----ember-cli-build.js(501B)
----bower.json(466B)
----.npmignore(160B)
----.ember-cli(280B)
----.travis.yml(578B)
----config()
--------environment.js(90B)
--------ember-try.js(607B)
----LICENSE.md(1KB)
----README.md(1KB)
----addon()
--------components()
--------.gitkeep(0B)
----.bowerrc(60B)
----testem.json(198B)
----.editorconfig(543B)
----tests()
--------.jshintrc(831B)
--------index.html(960B)
--------test-helper.js(112B)
--------helpers()
--------dummy()
--------unit()
----.gitignore(247B)
----app()
--------components()
--------.gitkeep(0B)
--------templates()
----index.js(85B)
----.watchmanconfig(29B)
----package.json(1KB)
----vendor()
--------.gitkeep(0B)