Esempio n. 1
0
 public static ModelMetadataItemBuilder <TValue> AsDropDownList <TValue>([NotNull] this ModelMetadataItemBuilder <TValue> self, string viewDataKey, string optionLabel, [AspMvcEditorTemplate, AspMvcDisplayTemplate] string template)
 {
     return(self.AsDropDownList(viewDataKey, () => optionLabel, template));
 }
Esempio n. 2
0
 public static ModelMetadataItemBuilder <TValue> AsDropDownList <TValue>([NotNull] this ModelMetadataItemBuilder <TValue> self, string viewDataKey)
 {
     return(self.AsDropDownList(viewDataKey, (Func <string>)null));
 }
Esempio n. 3
0
 public static ModelMetadataItemBuilder <TValue> AsDropDownList <TValue>([NotNull] this ModelMetadataItemBuilder <TValue> self, string viewDataKey, Func <string> optionLabel)
 {
     return(self.AsDropDownList(viewDataKey, optionLabel, "DropDownList"));
 }
Esempio n. 4
0
 /// <summary>
 /// Marks the value to render as DropDownList element in edit mode.
 /// </summary>
 /// <param name="self">The instance.</param>
 /// <param name="viewDataKey">The view data key.</param>
 /// <param name="optionLabel">The option label.</param>
 /// <param name="template">The template.</param>
 /// <returns></returns>
 public static ModelMetadataItemBuilder <TValue> AsDropDownList <TValue>(this ModelMetadataItemBuilder <TValue> self, string viewDataKey, string optionLabel, string template)
 {
     return(self.AsDropDownList(viewDataKey, () => optionLabel, template));
 }