Add SupportReadOnlyMode to editor

This commit is contained in:
Zeegaan
2022-06-22 15:08:44 +02:00
parent 8fe2f7e036
commit d4f1d3f680
7 changed files with 15 additions and 8 deletions

View File

@@ -68,4 +68,11 @@ public class ContentPropertyBasic
/// </summary>
[IgnoreDataMember]
public IDataEditor? PropertyEditor { get; set; }
/// <summary>
/// Used internally during model mapping
/// </summary>
[DataMember(Name = "supportsReadOnly")]
[ReadOnly(true)]
public bool SupportsReadOnly { get; set; }
}

View File

@@ -40,7 +40,4 @@ public class ContentPropertyDisplay : ContentPropertyBasic
[DataMember(Name = "readonly")]
public bool Readonly { get; set; }
[DataMember(Name = "supportsReadOnly")]
public bool SupportsReadOnly { get; set; }
}