/// <summary> /// Returns the PropertyEditor model used to render out the content editor /// for this data type and ensures that the prevalues stored in the repository against both the /// data type and document type property are passed into the editor so it can be configured. /// </summary> /// <returns></returns> public PropertyEditorModel GetEditorModel() { var preValueModel = GetPreValueModel(); //return the editor model with the merged pre-values return(InternalPropertyEditor != null?InternalPropertyEditor.CreateEditorModel((dynamic)preValueModel) : null); }
/// <summary> /// Represents the pre-value model used to render the pre value editor for this DataType /// </summary> public PreValueModel GetPreValueModel() { if (InternalPropertyEditor != null) { var preValModel = InternalPropertyEditor.CreatePreValueEditorModel(); preValModel.SetModelValues(Prevalues); return(preValModel); } return(null); }