Closed BarryFogarty closed 5 years ago
Hey Barry!
Yeh, sounds great. Pull request away! :)
I would be great if you could add an assembly to the package, which contains the model and this property value converter 👍
public class LinkPickerModel
{
public int Id { get; set; }
public string Name { get; set; }
public string Url { get; set; }
public string Target { get; set; }
public string Hashtarget { get; set; }
}
I have this one for my own package Color Palettes, which also returns json https://github.com/bjarnef/color-palettes/blob/master/ColorPalettes/ColorPalettes/Converters/ColorPaletteEditorValueConverter.cs
I have added a PR for this: https://github.com/Gibe/Umbraco-Link-Picker/pull/21
PropertyValueConverter exists and is in the latest packages
I have written a (very basic) value converter for the Link Picker, which simplifies usage in Views:
If you'd like to include this in the project let me know and I'll submit a PR.