Beispiel #1
0
 public static ModelMetadataItemBuilder <TValue> AsDropDownList <TValue>([NotNull] this ModelMetadataItemBuilder <TValue> self, string viewDataKey, Func <string> optionLabel)
 {
     return(self.AsDropDownList(viewDataKey, optionLabel, "DropDownList"));
 }
Beispiel #2
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));
 }
Beispiel #3
0
 public static ModelMetadataItemBuilder <TValue> AsDropDownList <TValue>([NotNull] this ModelMetadataItemBuilder <TValue> self, string viewDataKey)
 {
     return(self.AsDropDownList(viewDataKey, (Func <string>)null));
 }