Exemple #1
0
        public static FluentTagBuilder Option(string key, string value, bool isSelected)
        {
            var option = new FluentTagBuilder(FluentTagBuilder.Option);

            option.MergeAttribute(FluentTagBuilder.Value, key);
            option.SetInnerText(value);
            if (isSelected)
            {
                option.MergeAttribute(FluentTagBuilder.Selected, "selected");
            }
            return(option);
        }
Exemple #2
0
 public static FluentTagBuilder Style(this FluentTagBuilder tag, string style)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Style, style));
 }
Exemple #3
0
 public static FluentTagBuilder For(this FluentTagBuilder tag, string forContent)
 {
     return(tag.MergeAttribute(FluentTagBuilder.For, forContent));
 }
Exemple #4
0
 public static FluentTagBuilder Id(this FluentTagBuilder tag, string id)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Id, id));
 }
Exemple #5
0
 public static FluentTagBuilder Rowspan(this FluentTagBuilder tag, int span)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Rowspan, span));
 }
Exemple #6
0
 public static FluentTagBuilder Name(this FluentTagBuilder tag, string name)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Name, name));
 }
Exemple #7
0
 public static FluentTagBuilder Value(this FluentTagBuilder tag, string value)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Value, value));
 }
Exemple #8
0
 public static FluentTagBuilder Type(this FluentTagBuilder tag, string type)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Type, type));
 }
Exemple #9
0
 public static FluentTagBuilder Title(this FluentTagBuilder tag, string title)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Title, title));
 }
Exemple #10
0
 public static FluentTagBuilder Alt(this FluentTagBuilder tag, string alt)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Alt, alt));
 }
Exemple #11
0
 public static FluentTagBuilder Src(this FluentTagBuilder tag, string src)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Src, src));
 }
Exemple #12
0
 public static FluentTagBuilder Href(this FluentTagBuilder tag, string href)
 {
     return(tag.MergeAttribute(FluentTagBuilder.Href, href));
 }