You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81-15Lines changed: 81 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,38 @@
1
-
[](https://vaadin.com/directory/component/template-add-on)
2
-
[](https://vaadin.com/directory/component/template-add-on)
[](https://vaadin.com/directory/component/date-time-range-picker-add-on)
2
+
[](https://vaadin.com/directory/component/date-time-range-picker-add-on)
This is a template project for building new Vaadin 24 add-ons
9
+
A component to create [Time Intervals](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals) (_a time period defined by start and end points_) constrained by a time frame.
10
10
11
-
## Features
11
+
You use the UI to define time and date ranges in which the time intervals should be created, and then call the API to operate them.
12
+
13
+
As an example, you could set it to create an interval **every weekend** from **8:30 to 12:30 AM** between the
14
+
**1st and 15th of May 2025**.<br>Then, you can make the following queries:
12
15
13
-
* List the features of your add-on in here
16
+
1. How many intervals will be created? (4)
17
+
2. Starting from today, when will the next interval occur?
18
+
3. Is the 7th of May at 9:15 AM included in any interval? (It's not)
19
+
- How about the 5th of May at 9:00 AM? (Yes)
20
+
4. How many intervals will have passed after the 9th of May? (2)
21
+
5. How many intervals will remain after the 5th of May at 12:45? (3)
- (1) The **Pojo** class is binded using its getter and setter methods (2).
113
+
- (2) The **DateTimeRangePicker** is binded. Its [value](https://vaadin.com/api/platform/current/com/vaadin/flow/component/HasValue.html) can be operated now.
114
+
- (3) The **DateTimeRange** instance is saved in the **Pojo** class or returned from it.
115
+
116
+
117
+
You can operate time intervals with the **DateTimeRange** class, which acts as a holder.
0 commit comments