Beispiel #1
0
 /// <summary>
 /// 设置文本框按钮
 /// </summary>
 /// <param name="iconClass">文本框按钮图标class</param>
 /// <param name="clickCallback">单击回调函数</param>
 /// <param name="text">按钮文本</param>
 /// <param name="align">按钮对齐方式,默认右对齐</param>
 public T Button(string iconClass, string clickCallback, string text = "", AlignLeftRigth align = AlignLeftRigth.Right)
 {
     return(AddDataOption("buttonIcon", iconClass, true)
            .AddDataOption("onClickButton", clickCallback)
            .AddDataOption("buttonText", text, true)
            .AddDataOption("buttonAlign", align.Description(), true));
 }
Beispiel #2
0
 /// <summary>
 /// 设置文本框图标
 /// </summary>
 /// <param name="iconClass">图标class</param>
 /// <param name="width">图标宽度,默认18</param>
 /// <param name="align">图标对齐方式,默认右对齐</param>
 public T Icon(string iconClass, int width = 18, AlignLeftRigth align = AlignLeftRigth.Right)
 {
     AddDataOption("iconCls", GetValue(iconClass))
     .AddDataOption("iconWidth", width.ToString())
     .AddDataOption("iconAlign", GetValue(align.Description()));
     return(This());
 }
Beispiel #3
0
 /// <summary>
 /// 设置文本框按钮
 /// </summary>
 /// <param name="iconClass">文本框按钮图标class</param>
 /// <param name="clickCallback">单击回调函数</param>
 /// <param name="text">按钮文本</param>
 /// <param name="align">按钮对齐方式,默认右对齐</param>
 public T Button(string iconClass, string clickCallback, string text = "", AlignLeftRigth align = AlignLeftRigth.Right)
 {
     AddDataOption("buttonIcon", GetValue(iconClass))
     .AddDataOption("onClickButton", clickCallback)
     .AddDataOption("buttonText", GetValue(text))
     .AddDataOption("buttonAlign", GetValue(align.Description()));
     return(This());
 }
Beispiel #4
0
 /// <summary>
 /// 设置提示位置
 /// </summary>
 /// <param name="align">提示位置</param>
 public T TipPosition(AlignLeftRigth align)
 {
     return(AddDataOption("tipPosition", align.Description(), true));
 }
Beispiel #5
0
 /// <summary>
 /// 设置文本框图标
 /// </summary>
 /// <param name="iconClass">图标class</param>
 /// <param name="width">图标宽度,默认18</param>
 /// <param name="align">图标对齐方式,默认右对齐</param>
 public T Icon(string iconClass, int width = 18, AlignLeftRigth align = AlignLeftRigth.Right)
 {
     return(AddDataOption("iconCls", iconClass, true)
            .AddDataOption("iconWidth", width.ToString())
            .AddDataOption("iconAlign", align.Description(), true));
 }
Beispiel #6
0
 /// <summary>
 /// 设置提示位置
 /// </summary>
 /// <param name="align">提示位置</param>
 public T TipPosition(AlignLeftRigth align)
 {
     AddDataOption("tipPosition", GetValue(align.Description()));
     return(This());
 }