System Library Common Episerver
Search Results for

    DocFx,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.Properties.MessageEditorDescriptor,SystemLibrary.Common.Episerver.Properties.MessageProperty,SystemLibrary.Common.Episerver.Properties.MessageController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionFactory,SystemLibrary.Common.Episerver.Attributes.JsonEditController,SystemLibrary.Common.Episerver.Attributes.JsonEditFactory,SystemLibrary.Common.Episerver.Descriptors.HideCategoryListDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceController,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceEditorDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceProperty,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionController,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionFactory,SystemLibrary.Common.Episerver.Initialize.RemoveSuggestedContentTypes,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationServicesOptions,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationBuilderOptions,SystemLibrary.Common.Episerver.EditController,SystemLibrary.Common.Episerver.Abstract.BaseController,SystemLibrary.Common.Episerver.Abstract.BaseMultiSelectionFactory,SystemLibrary.Common.Episerver.ConnectionStringsConfig,SystemLibrary.Common.Episerver.PropertiesConfig,SystemLibrary.Common.Episerver.EditConfig,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.FontAwesome,SystemLibrary.Common.Episerver.AppSettings.Configuration,SystemLibrary.Common.Episerver.Attributes.ParentLinkReferenceFactory,SystemLibrary.Common.Episerver.Abstract.InternalBaseController,WebApplicationInitializer
    Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Episerver.Attributes SystemLibrary.Common.Episerver.dll

    MultiDropdownSelectionAttribute

    public class MultiDropdownSelectionAttribute : Attribute, IDisplayMetadataProvider, IMetadataDetailsProvider

    Inheritance
    System.Object
    MultiDropdownSelectionAttribute
    Implements
    Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider
    Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider
    Examples
    Arguments
    X

    Properties

    Specifically set the Enum Type to be the Selection

    Not needed to be set if the EnumType is the property type, as in 'public virtual SomeEnum ...'

    View Source

    public Type EnumType { get; set; }

    X
    Property Value
    Type Description
    Type

    Hide a range of items

    By default all items are shown, unless explicit setting Hide or Show

    Hide can either be one value, or a new object[] { ... }

    View Source

    public object Hide { get; set; }

    X
    enum Colors {
        None,
        White,
        Grey,
        Black,
    }
    
    
    Show = Color.White //would then show only one item to be select, white
    
    Show = new object[] { Color.White, Color.Grey, Color.Black} //would show 3 items, would not show 'none'
    
    Hide = Color.Grey //would hide only grey, show all other options
    
    Hide = new object[] { Color.White, Color.Black } //would show only None and Grey
    X
    Property Value
    Type Description
    System.Object

    Option to set your own selection factory type that will be invoked instead of the built-in one

    View Source

    public virtual Type SelectionFactoryType { get; set; }

    X
    Property Value
    Type Description
    Type

    Show a range of items

    By default all items are shown, unless explicit setting Hide or Show

    Show can either be one value, or a new object[] { ... }

    View Source

    public object Show { get; set; }

    X
    enum Colors {
        None,
        White,
        Grey,
        Black,
    }
    
    Show = Color.White //would then show only one item to be select, white
    
    Show = new object[] { Color.White, Color.Grey, Color.Black} //would show 3 items, would not show 'none'
    
    Hide = Color.Grey //would hide only grey, show all other options
    
    Hide = new object[] { Color.White, Color.Black } //would show only None and Grey
    X
    Property Value
    Type Description
    System.Object
    View Source

    public bool ShowExpiredItems { get; set; }

    X
    Property Value
    Type Description
    System.Boolean

    Methods

    View Source

    public void CreateDisplayMetadata(DisplayMetadataProviderContext context)

    X
    Methods arguments
    Type Name Description
    Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext context

    Implements

    Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider
    Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider

    Extension Methods

    TExtensions.ReactServerSideRender<T>(T, Object, String, Boolean, String, String, String, Boolean, Boolean, Boolean)

    }

    • View Source
    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Episerver