12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Bowin.Web.Controls.Mvc
- {
- public class TextBoxOptions : BaseFormControlOptions
- {
- public TextBoxOptions()
- {
- this.IsRequired = false;
- }
- public IDictionary<string, object> HtmlAttributes { get; set; }
- /// <summary>
- /// 输入框类型
- /// </summary>
- public TextBoxType TextBoxType { get; set; }
- //*************你妹的,写完才跟我说用Model验证****************//
- ///// <summary>
- ///// 非空约束?默认:否
- ///// </summary>
- //public bool IsRequired { get; set; }
- ///// <summary>
- ///// 验证输入数据的规则:
- ///// <para>email</para>
- ///// <para>url</para>
- ///// <para>最小长度为10,最大长度为100 length[10,100]</para>
- ///// <para>最小长度为10,不限制最大长度 length[10,0]</para>
- ///// <para>不限制最小长度,最大长度为10 length[0,10]</para>
- ///// <para>--------------------------------------------------</para>
- ///// <para>自定义验证函数 囧 暂不支持,没空写这个功能...</para>
- ///// </summary>
- //public string RequiredRule { get; set; }
- //**************************End*******************************//
- /// <summary>
- /// 输入框默认值
- /// </summary>
- public object Value { get; set; }
- public string OnSelect { get; set; }
- public string OnChange { get; set; }
- public string OnClear { get; set; }
- }
- }
|