图标按钮 LinkButton

1.说明

按钮用于开始一个即时操作。

2.API

属性名称 数据类型 是否必填 默认值 回传参数 说明
name string null 按钮名称
title string null 按钮标题
width number null 宽度
height number null 高度
backgroundColor strring null 背景颜色
color string null 字体颜色
iconCls string null 图标样式
iconAlign enum left,right,rightTop 图标位置
href string # 链接地址
tip string null 提示信息
style Object null 自定义style
className string null 自定义className
disabled bool false 按钮是否无效
hide bool false 按钮是否隐藏
draggable bool false 是否可拖动
onClick func null name,title 单击事件

3.代码演示

/**
 * Created by ALOG on 17/6/5.
 */

let React =require( "react");
let ReactDOM=require("react-dom");
let wasabi=require("wasabiD");
let LinkButton=wasabi.LinkButton;
var alogUtil = require("../libs/alogUtil.js");

class Demo extends React.Component {
    render(){
        return (
           <div>
               <LinkButton namt="btn1" title="按钮1" tip="这是说明文字" iconCls="icon-export" iconAlign="left"/>
               <LinkButton namt="btn2" title="按钮2" tip="这是说明文字" iconCls="icon-export" iconAlign="rightTop"/>
           </div>
        )
    }
}
ReactDOM.render(<Demo/>,document.getElementById("root"));

results matching ""

    No results matching ""