actionsheet(操作表)
推荐使用锚点方式显示、隐藏actionsheet;
若要使用js代码动态显示、隐藏actionsheet,同样在popover插件的构造方法中传入"toggle"参数即可
//传入toggle参数,用户无需关心当前是显示还是隐藏状态,mui会自动识别处理; mui('#sheet1').popover('toggle');
<div id="sheet1" class="mui-popover mui-popover-bottom mui-popover-action ">
锚点例子
<a type="button" href="#sheet1">button</a>
<ul class="mui-table-view">
<li class="mui-table-view-cell">
<a href="#">菜单1</a>
</li>
</ul>
<!-- 取消菜单 -->
<ul class="mui-table-view">
<li class="mui-table-view-cell">
<a href="#sheet1"><b>取消</b></a>
</li>
</ul>
</div>