public void Process(DisplayMetadata modelMetaData) { modelMetaData.AddAdditionalValueIfNotEmpty("Tags", Tags); if (FileExtensions != null && FileExtensions.Length == 1) { modelMetaData.AddAdditionalValueIfNotEmpty("FileExtension", FileExtensions.First()); } else if (FileExtensions != null) { modelMetaData.AddAdditionalValueIfNotEmpty("FileExtensions", string.Join(", ", FileExtensions)); } modelMetaData.TemplateHint = "DocumentAsset"; }
public void Process(DisplayMetadata modelMetaData) { modelMetaData .AddAdditionalValueIfNotEmpty("Toolbars", Toolbars) .AddAdditionalValueIfNotEmpty("CustomToolbar", CustomToolbar) .TemplateHint = DataType.Html.ToString(); }
public void Process(DisplayMetadata modelMetaData) { modelMetaData .AddAdditionalValueIfNotEmpty("Orderable", IsOrderable); modelMetaData.TemplateHint = "PageCollection"; }
public static void AddFilterData( DisplayMetadata modelMetaData, ICollection <string> fileExtensions, ICollection <string> tags ) { modelMetaData.AddAdditionalValueIfNotEmpty("Tags", tags); if (fileExtensions != null && fileExtensions.Count == 1) { modelMetaData.AddAdditionalValueIfNotEmpty("FileExtension", fileExtensions.First()); } else if (fileExtensions != null) { modelMetaData.AddAdditionalValueIfNotEmpty("FileExtensions", string.Join(", ", fileExtensions)); } }
public void Process(DisplayMetadata modelMetaData) { modelMetaData.TemplateHint = "Number"; modelMetaData .AddAdditionalValueIfNotEmpty("Step", Step) ; }
public void Process(DisplayMetadata modelMetaData) { modelMetaData .AddAdditionalValueIfNotEmpty("CustomEntityDefinitionCodes", string.Join(",", CustomEntityDefinitionCodes)) .AddAdditionalValueIfNotEmpty("Orderable", IsOrderable); modelMetaData.TemplateHint = "CustomEntityMultiTypeCollection"; }
public void Process(DisplayMetadata modelMetaData) { modelMetaData .AddAdditionalValueIfNotEmpty("CustomEntityDefinitionCode", CustomEntityDefinitionCode) .AddAdditionalValueIfNotEmpty("Orderable", IsOrderable); modelMetaData.TemplateHint = "CustomEntityCollection"; }
public void Process(DisplayMetadata modelMetaData) { modelMetaData .AddAdditionalValueIfNotEmpty("Width", Width) .AddAdditionalValueIfNotEmpty("Height", Height) .AddAdditionalValueIfNotEmpty("MinWidth", MinWidth) .AddAdditionalValueIfNotEmpty("MinHeight", MinHeight); modelMetaData.TemplateHint = "ImageAssetCollection"; }
public void Process(DisplayMetadata modelMetaData) { modelMetaData .AddAdditionalValueIfNotEmpty("Tags", Tags) .AddAdditionalValueIfNotEmpty("Width", Width) .AddAdditionalValueIfNotEmpty("Height", Height) .AddAdditionalValueIfNotEmpty("MinWidth", MinWidth) .AddAdditionalValueIfNotEmpty("MinHeight", MinHeight) .AddAdditionalValueIfNotEmpty("PreviewWidth", PreviewWidth) .AddAdditionalValueIfNotEmpty("PreviewHeight", PreviewHeight) ; modelMetaData.TemplateHint = "ImageAsset"; }
public void Process(DisplayMetadata modelMetaData) { modelMetaData .AddAdditionalValueIfNotEmpty("Placeholder", Placeholder) ; }
public void Process(DisplayMetadata modelMetaData) { modelMetaData.AddAdditionalValueIfNotEmpty("CustomEntityDefinitionCode", CustomEntityDefinitionCode); modelMetaData.TemplateHint = "CustomEntitySelector"; }