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