Search Results for

    Show / Hide Table of Contents

    Class RenderMudTimePickerAttribute

    This class is an attribute that, when applied to a System.TimeSpan property, causes the form generator to render the property as a MudBlazor.MudTimePicker component.

    Inheritance
    System.Object
    System.Attribute
    CG.Blazor.Forms.Attributes.FormGeneratorAttribute
    MudBlazorAttribute
    RenderMudTimePickerAttribute
    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 RenderMudTimePickerAttribute : MudBlazorAttribute
    Remarks

    This attribute is only valid when placed on a property of type: System.TimeSpan.

    Examples

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

    using CG.Blazor.Forms.Attributes;
    class MyModel
    {
        [RenderMudTimePacker]
        public TimeSpan MyProperty { get;set; }
    }

    Constructors

    RenderMudTimePickerAttribute()

    This constructor creates a new instance of the RenderMudTimePickerAttribute class.

    Declaration
    public RenderMudTimePickerAttribute()

    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

    AmPm

    This property indicates whether the control shows a 12 or 24 hour day.

    Declaration
    public bool AmPm { 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

    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

    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

    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

    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

    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

    TimeEditMode

    This property contains the edition mode. By default, you can edit hours and minutes.

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

    TimeFormat

    This property contains the string format for the selected time.

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

    ToolBarClass

    This property contains user class names for picker's ToolBar, separated by space

    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