public static For ( IEnumerable |
||
values | IEnumerable |
|
return | StoryTeller.Model.Option[] |
private void selectEditor(Type type) { if (type == typeof(bool)) { editor = "boolean"; DefaultValue = false.ToString(); } else if (type.GetTypeInfo().IsEnum) { editor = "select"; options = Option.For(Enum.GetNames(type)); } }