コード例 #1
0
ファイル: Textbox.cs プロジェクト: renhammington/UxFoundation
        public Textbox(string text, string placeholder = null, 
			bool multiLine = false, int? rows = null,
			TextboxSize size = null, GridSize gridSize = null, 
			string width = null, string height = null, 
			string helpText = null, 
			string clientId = null)
            : base("_Textbox",clientId)
        {
            SetText(text)
                .SetPlaceholder(placeholder)
                .SetMultiLine(multiLine, rows)
                .SetSize(size, gridSize, width, height)
                .SetHelpText(helpText);
        }
コード例 #2
0
    public static MvcHtmlString UxTextbox(this HtmlHelper helper,
		string text,
		string placeholder = null,
		bool multiLine = false,
		int? rows = null,
		TextboxSize size = null,
		GridSize gridSize = null,
		string width = null,
		string height = null,
		string helpText = null,
		string clientId = null)
    {
        var textbox = new Textbox(text, placeholder,
            multiLine, rows, size, gridSize,
            width, height, helpText, clientId);
        return helper.RenderUxControl(textbox);
    }
コード例 #3
0
ファイル: Textbox.cs プロジェクト: renhammington/UxFoundation
 public Textbox SetSize(TextboxSize size = null, GridSize gridSize = null, string width = null, string height= null)
 {
     Size = size ?? TextboxSize.Default;
     GridSize = gridSize ?? GridSize.NotSet;
     Width = width;
     Height = height;
     return this;
 }