menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DayHeaderFormats - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DayHeaderFormats

    Specifies the display format for day names in the calendar header.

    Inheritance
    System.Object
    DayHeaderFormats
    Namespace: Syncfusion.Blazor.Calendars
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class DayHeaderFormats : Enum
    Remarks

    The DayHeaderFormats enum controls how day names are displayed in the header row of calendar components. This affects the visual appearance and space utilization of the calendar, allowing customization based on available space and user preferences. Different formats provide varying levels of detail for day identification.

    Examples

    Setting the day header format:

    <SfCalendar TValue="DateTime" DayHeaderFormat="DayHeaderFormats.Abbreviated"></SfCalendar>

    Fields

    Abbreviated

    Displays day names in abbreviated format, typically showing three characters (e.g., "Sun", "Mon", "Tue").

    Declaration
    public const DayHeaderFormats Abbreviated
    Field Value
    Type
    DayHeaderFormats
    Remarks

    This format provides a good balance between space efficiency and clarity. It's commonly used in many calendar applications as it's easily readable while not taking up excessive space.

    Narrow

    Displays day names as single characters (e.g., "S", "M", "T").

    Declaration
    public const DayHeaderFormats Narrow
    Field Value
    Type
    DayHeaderFormats
    Remarks

    This is the most compact format, using only the first letter of each day name. It's ideal for mobile interfaces or very small calendar displays where space is at a premium. Note that some days may share the same initial letter in certain locales.

    Short

    Displays day names in short format, typically showing two characters (e.g., "Su", "Mo", "Tu").

    Declaration
    public const DayHeaderFormats Short
    Field Value
    Type
    DayHeaderFormats
    Remarks

    This format provides a compact representation while still being easily recognizable. It's suitable for calendars where space is moderately constrained but readability remains important.

    Wide

    Displays day names in full format, showing complete day names (e.g., "Sunday", "Monday", "Tuesday").

    Declaration
    public const DayHeaderFormats Wide
    Field Value
    Type
    DayHeaderFormats
    Remarks

    This format provides the clearest representation of day names but requires the most space. It's suitable for large calendar displays where readability is prioritized over space conservation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved