Search Results for

    Show / Hide Table of Contents

    Class RenderMudDatePickerAttribute

    This class is an attribute that, when applied to a System.Nullable<T> property, causes the form generator to render the property as a MudBlazor.MudDatePicker component.

    Inheritance
    System.Object
    System.Attribute
    CG.Blazor.Forms.Attributes.FormGeneratorAttribute
    MudBlazorAttribute
    RenderMudDatePickerAttribute
    Inherited Members
    MudBlazorAttribute.Class
    MudBlazorAttribute.Style
    MudBlazorAttribute.Tag
    MudBlazorAttribute.UserAttributes
    System.Attribute.Equals(System.Object)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetHashCode()
    System.Attribute.IsDefaultAttribute()
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.Match(System.Object)
    System.Attribute.TypeId
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: CG.Blazor.Forms.Attributes
    Assembly: CG.Blazor.Forms._MudBlazor.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public class RenderMudDatePickerAttribute : MudBlazorAttribute
    Remarks

    This attribute is only valid when placed on a property of type: System.Nullable<T>.

    Examples

    Here is an example of decorating a model property to render a MudBlazor.MudDatePicker:

    using CG.Blazor.Forms.Attributes;
    class MyModel
    {
        [RenderMudDatePicker]
        public DateTime? MyProperty { get;set; }
    }

    Constructors

    RenderMudDatePickerAttribute()

    This constructor creates a new instance of the RenderMudDatePickerAttribute class.

    Declaration
    public RenderMudDatePickerAttribute()

    Properties

    Adornment

    This property indicates the position for the control.

    Declaration
    public Adornment Adornment { get; set; }
    Property Value
    Type Description
    MudBlazor.Adornment

    AdornmentColor

    This property indicates the color for the control.

    Declaration
    public Color AdornmentColor { get; set; }
    Property Value
    Type Description
    MudBlazor.Color

    AdornmentIcon

    This property indicates the icon for the control.

    Declaration
    public string AdornmentIcon { get; set; }
    Property Value
    Type Description
    System.String

    AllowKeyboardInput

    This property indicates whether the control accepts keyboard input, or not.

    Declaration
    public bool AllowKeyboardInput { get; set; }
    Property Value
    Type Description
    System.Boolean

    AutoClose

    This property indicates whether the control should close automatically, or not.

    Declaration
    public bool AutoClose { get; set; }
    Property Value
    Type Description
    System.Boolean

    ClassActions

    This property contains any CSS classes to use for the action buttons.

    Declaration
    public string ClassActions { get; set; }
    Property Value
    Type Description
    System.String

    ClosingDelay

    This property indicates the closing delay for the control.

    Declaration
    public int ClosingDelay { get; set; }
    Property Value
    Type Description
    System.Int32

    Color

    This property contains the color to use for the control.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    MudBlazor.Color

    DateFormat

    This property indicates the date format for the control.

    Declaration
    public string DateFormat { get; set; }
    Property Value
    Type Description
    System.String

    Disabled

    This property indicates whether the control is disabled, or not.

    Declaration
    public bool Disabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    DisableToolbar

    This property indicates whether the toolbar is disabled, or not.

    Declaration
    public bool DisableToolbar { get; set; }
    Property Value
    Type Description
    System.Boolean

    DisplayMonths

    This property indicates how many months to display in the control.

    Declaration
    public int DisplayMonths { get; set; }
    Property Value
    Type Description
    System.Int32

    Editable

    This property indicates whether the control is editable, or not.

    Declaration
    public bool Editable { get; set; }
    Property Value
    Type Description
    System.Boolean

    Elevation

    This property contains the elevation to use for the control.

    Declaration
    public int Elevation { get; set; }
    Property Value
    Type Description
    System.Int32

    FirstDayOfWeek

    This property contains an optional day on which to start the week.

    Declaration
    public DayOfWeek? FirstDayOfWeek { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DayOfWeek>

    IconSize

    This property indicates the icon size to use with the control.

    Declaration
    public Size IconSize { get; set; }
    Property Value
    Type Description
    MudBlazor.Size

    Label

    This property contains a label for the control.

    Declaration
    public string Label { get; set; }
    Property Value
    Type Description
    System.String

    Margin

    This property contains the margin for the control.

    Declaration
    public Margin Margin { get; set; }
    Property Value
    Type Description
    MudBlazor.Margin

    MaxDate

    This property contains an optional maximum date for the control.

    Declaration
    public DateTime? MaxDate { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    MaxMonthColumns

    This property contains an optional maximum number of months to show in a singlee row, on the control.

    Declaration
    public int? MaxMonthColumns { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    MinDate

    This property contains an optional minimum date for the control.

    Declaration
    public DateTime? MinDate { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    OpenTo

    This property contains the first view to show in the control.

    Declaration
    public OpenTo OpenTo { get; set; }
    Property Value
    Type Description
    MudBlazor.OpenTo

    Orientation

    This property contains the orientiation for the control.

    Declaration
    public Orientation Orientation { get; set; }
    Property Value
    Type Description
    MudBlazor.Orientation

    PickerVariant

    This property contains the control container variant.

    Declaration
    public PickerVariant PickerVariant { get; set; }
    Property Value
    Type Description
    MudBlazor.PickerVariant

    ReadOnly

    This property indicates whether the control is read only, or not.

    Declaration
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean

    Required

    This property indicates whether the control is required, or not.

    Declaration
    public bool Required { get; set; }
    Property Value
    Type Description
    System.Boolean

    Rounded

    This property indicates whether the control should have rounded corners, or not.

    Declaration
    public bool Rounded { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowWeekNumbers

    This property indicates whether the control should show weekly numbers, or not.

    Declaration
    public bool ShowWeekNumbers { get; set; }
    Property Value
    Type Description
    System.Boolean

    Square

    This property indicates whether the control should show square corners, or not.

    Declaration
    public bool Square { get; set; }
    Property Value
    Type Description
    System.Boolean

    StartMonth

    This property contains an optional starting month date for the control.

    Declaration
    public DateTime? StartMonth { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    TitleDateFormat

    This property indicates the format to use for the selected date, in the title of the control.

    Declaration
    public string TitleDateFormat { get; set; }
    Property Value
    Type Description
    System.String

    ToolBarClass

    This property contains any CSS classes to use for the control's tool bar.

    Declaration
    public string ToolBarClass { get; set; }
    Property Value
    Type Description
    System.String

    Variant

    This property contains the variant for the control.

    Declaration
    public Variant Variant { get; set; }
    Property Value
    Type Description
    MudBlazor.Variant

    Methods

    Generate(RenderTreeBuilder, Int32, IHandleEvent, Stack<Object>, PropertyInfo, ILogger<IFormGenerator>)

    Declaration
    public override int Generate(RenderTreeBuilder builder, int index, IHandleEvent eventTarget, Stack<object> path, PropertyInfo prop, ILogger<IFormGenerator> logger)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder
    System.Int32 index
    Microsoft.AspNetCore.Components.IHandleEvent eventTarget
    System.Collections.Generic.Stack<System.Object> path
    System.Reflection.PropertyInfo prop
    Microsoft.Extensions.Logging.ILogger<CG.Blazor.Forms.Services.IFormGenerator> logger
    Returns
    Type Description
    System.Int32
    Overrides
    CG.Blazor.Forms.Attributes.FormGeneratorAttribute.Generate(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder, System.Int32, Microsoft.AspNetCore.Components.IHandleEvent, System.Collections.Generic.Stack<System.Object>, System.Reflection.PropertyInfo, Microsoft.Extensions.Logging.ILogger<CG.Blazor.Forms.Services.IFormGenerator>)

    ToAttributes()

    Declaration
    public override IDictionary<string, object> ToAttributes()
    Returns
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>
    Overrides
    MudBlazorAttribute.ToAttributes()
    In This Article
    Back to top Generated by DocFX