File tree Expand file tree Collapse file tree 3 files changed +63
-0
lines changed
examples-standalone/kendoangular-landing-page/src/app/components/date-inputs Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ .grid {
2+ display : flex;
3+ grid : auto auto / 1fr 1fr ;
4+ grid-gap : 40px ;
5+ justify-content : center;
6+ align-items : center;
7+ }
8+
9+ .wrapper {
10+ display : flex;
11+ flex-direction : column;
12+ gap : 20px ;
13+ }
14+
15+ .component {
16+ width : 460px ;
17+ }
18+
19+ .k-daterangepicker {
20+ justify-content : space-between;
21+ }
Original file line number Diff line number Diff line change 1+ < div class ="grid ">
2+ < div class ="wrapper ">
3+ < div class ="component ">
4+ < p > DatePicker</ p >
5+ < kendo-datepicker [(value)] ="range.start "> </ kendo-datepicker >
6+ </ div >
7+ < div class ="component ">
8+ < p > DateTimePicker</ p >
9+ < kendo-datetimepicker [(value)] ="range.start "> </ kendo-datetimepicker >
10+ </ div >
11+ < div class ="component ">
12+ < p > DateRange</ p >
13+ < div class ="daterange-wrapper ">
14+ < kendo-daterange >
15+ < kendo-floatinglabel text ="Check-in ">
16+ < kendo-dateinput kendoDateRangeStartInput [(value)] ="range.start "> </ kendo-dateinput >
17+ </ kendo-floatinglabel >
18+ < kendo-floatinglabel text ="Check-out ">
19+ < kendo-dateinput kendoDateRangeEndInput [(value)] ="range.end "> </ kendo-dateinput >
20+ </ kendo-floatinglabel >
21+ </ kendo-daterange >
22+ </ div >
23+ </ div >
24+ </ div >
25+ < div >
26+ < kendo-calendar [(value)] ="range " selection ="range "> </ kendo-calendar >
27+ </ div >
28+ </ div >
Original file line number Diff line number Diff line change 1+ import { Component , ViewEncapsulation } from '@angular/core' ;
2+ import { KENDO_DATEINPUTS } from '@progress/kendo-angular-dateinputs' ;
3+ import { KENDO_LABELS } from '@progress/kendo-angular-label' ;
4+
5+ @Component ( {
6+ selector : 'app-date-inputs' ,
7+ imports : [ KENDO_DATEINPUTS , KENDO_LABELS ] ,
8+ encapsulation : ViewEncapsulation . None ,
9+ templateUrl : './date-inputs.component.html' ,
10+ styleUrl : './date-inputs.component.css' ,
11+ } )
12+ export class DateInputsComponent {
13+ public range = { start : new Date ( ) , end : new Date ( ) } ;
14+ }
You can’t perform that action at this time.
0 commit comments