Exemplo n.º 1
0
 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";
 }
Exemplo n.º 2
0
 public void Process(DisplayMetadata modelMetaData)
 {
     modelMetaData
     .AddAdditionalValueIfNotEmpty("Toolbars", Toolbars)
     .AddAdditionalValueIfNotEmpty("CustomToolbar", CustomToolbar)
     .TemplateHint = DataType.Html.ToString();
 }
Exemplo n.º 3
0
        public void Process(DisplayMetadata modelMetaData)
        {
            modelMetaData
            .AddAdditionalValueIfNotEmpty("Orderable", IsOrderable);

            modelMetaData.TemplateHint = "PageCollection";
        }
Exemplo n.º 4
0
 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));
     }
 }
Exemplo n.º 5
0
        public void Process(DisplayMetadata modelMetaData)
        {
            modelMetaData.TemplateHint = "Number";

            modelMetaData
            .AddAdditionalValueIfNotEmpty("Step", Step)
            ;
        }
Exemplo n.º 6
0
        public void Process(DisplayMetadata modelMetaData)
        {
            modelMetaData
            .AddAdditionalValueIfNotEmpty("CustomEntityDefinitionCodes", string.Join(",", CustomEntityDefinitionCodes))
            .AddAdditionalValueIfNotEmpty("Orderable", IsOrderable);

            modelMetaData.TemplateHint = "CustomEntityMultiTypeCollection";
        }
Exemplo n.º 7
0
        public void Process(DisplayMetadata modelMetaData)
        {
            modelMetaData
            .AddAdditionalValueIfNotEmpty("CustomEntityDefinitionCode", CustomEntityDefinitionCode)
            .AddAdditionalValueIfNotEmpty("Orderable", IsOrderable);

            modelMetaData.TemplateHint = "CustomEntityCollection";
        }
Exemplo n.º 8
0
        public void Process(DisplayMetadata modelMetaData)
        {
            modelMetaData
            .AddAdditionalValueIfNotEmpty("Width", Width)
            .AddAdditionalValueIfNotEmpty("Height", Height)
            .AddAdditionalValueIfNotEmpty("MinWidth", MinWidth)
            .AddAdditionalValueIfNotEmpty("MinHeight", MinHeight);

            modelMetaData.TemplateHint = "ImageAssetCollection";
        }
Exemplo n.º 9
0
        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";
        }
Exemplo n.º 10
0
 public void Process(DisplayMetadata modelMetaData)
 {
     modelMetaData
     .AddAdditionalValueIfNotEmpty("Placeholder", Placeholder)
     ;
 }
Exemplo n.º 11
0
        public void Process(DisplayMetadata modelMetaData)
        {
            modelMetaData.AddAdditionalValueIfNotEmpty("CustomEntityDefinitionCode", CustomEntityDefinitionCode);

            modelMetaData.TemplateHint = "CustomEntitySelector";
        }