Ambertvu
(Ambert van Unen)
1
Im extending the normal MediaPicker3 datatype / configuration, and I’ve added my custom fields to it:
But anyone a suggestion how I can group / sort the order? Or insert them at a specific spot ?
public class CustomMediaPickerConfiguration : MediaPicker3Configuration
{
[ConfigurationField("someField", "Some custom property", "boolean")]
public bool SomeField { get; set; }
[ConfigurationField("AnotherField", "Another custom property", "textstring")]
public string AnotherField { get; set; } = string.Empty;
}
Is it possible to put weight on like this
[ConfigurationField("someField", "Some custom property", "boolean", Weight = 10)]
public bool SomeField { get; set; }
[ConfigurationField("AnotherField", "Another custom property", "textstring", Weight = 20)]
public string AnotherField { get; set; } = string.Empty;
Ambertvu
(Ambert van Unen)
3
It’s actually SortOrder = 10
Probably was too late last night for me to think properly, haha, Intellisense helped and showed the SortOrder property.
1 Like