Пример #1
0
        internal override string CreateHtml()
        {
            var html = DynamicTextBuilder.Format(
                @"<div class='form-group'><label>{TextBox.Label}</label><input type='text' id='{TextBox.Id}' name='{TextBox.Name}' class='{TextBox.Class}' placeholder='{TextBox.Placeholder}' value='{TextBox.Value}' {TextBox.Attributes} /></div>",
                "TextBox",
                new {
                Id          = UIData.Id,
                Name        = UIData.Name,
                Label       = UIData.Label,
                Class       = UIData.Class,
                Placeholder = UIData.Placeholder,
                Value       = UIData.Value,
                Attributes  = UIData.CreateAttributesHtml()
            });

            return(html);
        }