コード例 #1
0
ファイル: BoundField.cs プロジェクト: marciogoularte/mvcforms
 /// <summary>
 /// Apply a label element to string content.
 /// </summary>
 /// <param name="contents">Content to tag.</param>
 /// <param name="attributes">Attributes to apply.</param>
 /// <returns></returns>
 public string ApplyLabel(string contents, object attributes)
 {
     return(ApplyLabel(contents, ElementAttributesDictionary.Create(attributes)));
 }
コード例 #2
0
ファイル: BoundField.cs プロジェクト: marciogoularte/mvcforms
 /// <summary>
 /// Output a string version of this field
 /// </summary>
 /// <param name="attributes">Additional attributes for widget.</param>
 /// <returns></returns>
 public string ToString(object attributes)
 {
     return(this.AsWidget(null, ElementAttributesDictionary.Create(attributes)));
 }
コード例 #3
0
ファイル: BoundField.cs プロジェクト: marciogoularte/mvcforms
 /// <summary>
 /// Apply a label element to string content.
 /// </summary>
 /// <param name="attributes">Attributes to apply.</param>
 /// <returns></returns>
 public string ApplyLabel(object attributes)
 {
     return(ApplyLabel(this.Label, ElementAttributesDictionary.Create(attributes)));
 }