-
Notifications
You must be signed in to change notification settings - Fork 6
/
IFlatpickrOptions.cs
81 lines (65 loc) · 2.52 KB
/
IFlatpickrOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
using System.Collections.Generic;
namespace FlatpickrBlazor
{
public interface IFlatpickrOptions
{
/// <summary>
/// A string of characters which are used to define how the date will be displayed in the input box.
/// </summary>
/// <see href="https://flatpickr.js.org/formatting/"/>
string DateFormat { get; set; }
/// <summary>
/// Displays the calendar inline.
/// </summary>
bool Inline { get; set; }
/// <summary>
/// Hides the day selection in calendar. Use it along with <see cref="EnableTime" /> to create a time picker.
/// </summary>
bool NoCalendar { get; set; }
/// <summary>
/// Enables time picker.
/// </summary>
bool EnableTime { get; set; }
/// <summary>
/// Displays time picker in 24 hour mode without AM/PM selection when enabled.
/// </summary>
bool Time24Hours { get; set; }
/// <summary>
/// Enables display of week numbers in calendar.
/// </summary>
bool WeekNumbers { get; set; }
string Locale { get; set; }
/// <summary>
/// The minimum date that a user can start picking from (inclusive).
/// </summary>
DateTimeOffset? MinDate { get; set; }
bool ParseMinDate { get; set; }
/// <summary>
/// The maximum date that a user can pick to (inclusive).
/// </summary>
DateTimeOffset? MaxDate { get; set; }
bool ParseMaxDate { get; set; }
/// <summary>
/// Adjusts the step for the hour input (incl. scrolling).
/// </summary>
int HourIncrement { get; set; }
/// <summary>
/// Adjusts the step for the minute input (incl. scrolling).
/// </summary>
int MinuteIncrement { get; set; }
/// <summary>
/// Sets the initial selected date(s).
/// If you're using mode: "multiple" or a range calendar supply an Array of Date objects or an Array of date strings which follow your dateFormat.
/// Otherwise, you can supply a single Date object or a date string.
/// </summary>
List<string> DefaultDate { get; set; }
/// <see cref="FlatpickrOptionsMode"/>
FlatpickrOptionsMode Mode { get; set; }
/// <summary>
/// Custom elements and input groups.
/// </summary>
/// <see href="https://flatpickr.js.org/examples/#flatpickr-external-elements"/>
bool Wrap { get; set; }
}
}