示例#1
0
 /// <summary>
 /// Gets an Author defined attribute with the specified value. This method adds the "data-" prefix for you.
 /// </summary>
 public static TValue Data <TValue>(this IHtmlBuilderState instance,
                                    string name)
 {
     FormatName(ref name);
     return(instance.Attr <TValue>(name));
 }
示例#2
0
 /// <summary>
 /// Gets the name attribute [Short for Attr("name")]
 /// </summary>
 public static string Name(this IHtmlBuilderState instance)
 {
     return(instance.Attr <string>("name"));
 }
示例#3
0
 /// <summary>
 /// Gets an Author defined attribute with the specified value as a string. This method adds the "data-" prefix for you.
 /// </summary>
 public static string Data(this IHtmlBuilderState instance,
                           string name)
 {
     return(Data <string>(instance, name));
 }
示例#4
0
 /// <summary>
 /// Gets the id attribute [Short for Attr("id")]
 /// </summary>
 /// <returns></returns>
 public static string Id(this IHtmlBuilderState instance)
 {
     return(instance.Attr <string>("id"));
 }