Beispiel #1
0
 /// <summary>
 /// 是否显示复选框
 /// </summary>
 /// <param name="isShow">是否显示复选框</param>
 public IDataGridColumn CheckBox(bool isShow = true)
 {
     if (_isEdit)
     {
         _editorType = "checkbox";
         _builder.Add("on", "1");
         _builder.Add("off", "0");
     }
     else
     {
         AddDataOption("checkbox", isShow);
     }
     return(This());
 }
Beispiel #2
0
 /// <summary>
 /// 设置文本框为必填项
 /// </summary>
 /// <param name="isRequired">true为必填项</param>
 public void Required(bool isRequired = true)
 {
     _builder.Add("required", isRequired.ToString().ToLower());
 }
 public void TestAdd_1()
 {
     _builder.Add("a", "1");
     Assert.AreEqual("a:1", _builder.GetResult());
 }
Beispiel #4
0
 /// <summary>
 /// 设置远程Url
 /// </summary>
 /// <param name="url">远程数据加载Url</param>
 public void Url(string url)
 {
     _builder.Add("url", url, "'");
 }