为什么选择MiniUI?
首页>文档中心>开发教程>表单控件

Button:按钮



参考示例按钮     菜单按钮     按钮组 工具栏


创建按钮

    <h4>Only Text</h4>
    <a class="mini-button" onclick="onClick" enabled="false" >增加</a>
    <a class="mini-button" onclick="onClick" >修改</a>

    <h4>Text and Icon</h4>
    <a class="mini-button" iconCls="icon-add" onclick="onClick" >增加</a>
    <a class="mini-button mini-button-iconRight" iconCls="icon-edit" onclick="onClick" >修改</a>    

    <h4>Only Icon</h4>
    <a class="mini-button" iconCls="icon-add" onclick="onClick"></a>
    <a class="mini-button" iconCls="icon-edit" onclick="onClick"></a>    

    <h4>Plain</h4>    
    <a class="mini-button" plain="true" iconCls="icon-add" onclick="onClick">增加</a>
    <a class="mini-button" plain="true" iconCls="icon-edit" onclick="onClick">修改</a>
    <a class="mini-button" plain="true" iconCls="icon-remove" onclick="onClick">删除</a>

    <h4>Icon Position</h4>
    <a class="mini-button mini-button-iconTop" iconCls="icon-add" onclick="onClick" >增加</a>    
    <a class="mini-button mini-button-iconTop" iconCls="icon-edit" onclick="onClick" >修改</a>

    <h4>A Link</h4>
    <a class="mini-button" href="http://www.google.com">Google</a>
    <a class="mini-button" href="http://www.baidu.com">Baidu</a>

菜单按钮

    <a class="mini-menubutton" menu="#popupMenu" >选择...</a>

    <ul id="popupMenu" class="mini-menu" style="display:none;">
        <li>
            <span >操作</span>
            <ul>
                <li iconCls="icon-new" onclick="onItemClick">新建</li>
                <li class="separator"></li>
                <li iconCls="icon-add" onclick="onItemClick">增加</li>    
                <li iconCls="icon-edit" onclick="onItemClick">修改</li>
                <li iconCls="icon-remove" onclick="onItemClick">删除</li>                      
            </ul>
        </li>
        <li class="separator"></li>
        <li iconCls="icon-open" >打开</li>
        <li iconCls="icon-remove" >关闭</li>
    </ul>

工具栏

<div class="mini-toolbar">
    <a class="mini-button" iconCls="icon-add">增加</a>
    <a class="mini-button" iconCls="icon-edit">修改</a>
    <a class="mini-button" iconCls="icon-remove">删除</a>
    <span class="separator"></span>
    <a class="mini-button" plain="true">增加</a>
    <a class="mini-button" plain="true">修改</a>
    <a class="mini-button" plain="true">删除</a>
    <span class="separator"></span>
    <input class="mini-textbox" />   
    <a class="mini-button" plain="true">查询</a>
</div>