outsystems-ui - v3.0.0
    Preparing search index...

    Class AbstractFlatpickrConfigAbstract

    Class that represents the custom configurations received by the Datepicker.

    Hierarchy (View Summary)

    Index
    ExtendedClass: string

    CSS classes added to the pattern root.

    DateFormat: string

    Display format of the selected date (e.g. DD/MM/YYYY); empty uses the server date format.

    FirstWeekDay: number

    First day of the week in the calendar (0 = Sunday … 6 = Saturday).

    MaxDate: string

    Latest selectable date; empty for no upper limit.

    MinDate: string

    Earliest selectable date; empty for no lower limit.

    ShowTodayButton: boolean

    Renders a Today button in the calendar footer.

    ShowWeekNumbers: boolean

    Shows the week-number column in the calendar.

    TimeFormat: string

    Time selection appended to the calendar: disabled (date only), 12 or 24 (hour format).

    providerExtendedOptions: FlatpickrOptions
    AllowInput: boolean = false

    Stores the ability to allow inputs to be editable or not

    Store calendar mode is in use

    Disable: DisabledDate[] = []

    Stores the ability to disable a range of dates from datepicker

    DisableMobile: boolean = false

    Stores the ability to disable the mobile flatpickr behavior. False is the default provider option

    OnChange: Generic

    Set the OnChange Event that will be defined in the specific context for each Flatpickr mode

    OnClose: Generic

    Set the OnClose callback to be used whenever the Flatpickr close

    OnMonthChange: Generic

    Set the OnMonthChange callback to be used whenever the Flatpickr month changes

    OnOpen: Generic

    Set the OnOpen callback to be used whenever the Flatpickr opens

    • Protected

      Method that helps to validate if a given value is within a range of values.

      Parameters

      • value: unknown

        Value received in the configs

      • defaultValue: unknown

        Value used when the given one is missing or invalid

      • ...args: unknown[]

        Allowed values

      Returns unknown

    • Protected

      Method to merge Common, Specific and External configs

      Parameters

      • commonConfigs: any

        Configurations shared by every mode of the provider

      • specificConfigs: any

        Configurations of the current mode

      • OptionalextendedConfigs: any

        Extensibility configurations set by the developer

      Returns any