@@ -22,7 +22,7 @@ import {NgbDatepicker, NgbDatepickerNavigateEvent} from './datepicker';
22
22
import { DayTemplateContext } from './datepicker-day-template-context' ;
23
23
import { NgbDateParserFormatter } from './ngb-date-parser-formatter' ;
24
24
25
- import { positionElements } from '../util/positioning' ;
25
+ import { positionElements , PlacementArray } from '../util/positioning' ;
26
26
import { NgbDateStruct } from './ngb-date-struct' ;
27
27
import { NgbCalendar } from './ngb-calendar' ;
28
28
import { NgbDatepickerService } from './datepicker-service' ;
@@ -103,12 +103,13 @@ export class NgbInputDatepicker implements OnChanges,
103
103
*/
104
104
@Input ( ) outsideDays : 'visible' | 'collapsed' | 'hidden' ;
105
105
106
-
107
106
/**
108
- * Placement of a datepicker popup. Accepts: "top", "bottom", "left", "right", "bottom-left",
109
- * "bottom-right" etc.
110
- */
111
- @Input ( ) placement = 'bottom-left' ;
107
+ * Placement of a datepicker popup accepts:
108
+ * "top", "top-left", "top-right", "bottom", "bottom-left", "bottom-right",
109
+ * "left", "left-top", "left-bottom", "right", "right-top", "right-bottom"
110
+ * and array of above values.
111
+ */
112
+ @Input ( ) placement : PlacementArray = 'bottom-left' ;
112
113
113
114
/**
114
115
* Whether to display days of the week
0 commit comments