DateRangePopupComponent
Represents the Kendo UI DateRangePopup component for Angular.
import { DateInputsModule, DateRangeService } from '@progress/kendo-angular-dateinputs';
@Component({
providers: [DateRangeService],
selector: 'my-app',
template: `
<button #anchor (click)="popup.toggle()">Toggle</button>
<kendo-daterange-popup [anchor]="anchor" #popup></kendo-daterange-popup>
`
})
export class AppComponent {
}
Selector
kendo-daterange-popup
Export Name
Accessible in templates as #kendoDateRangePopupInstance="kendo-daterange-popup"
Inputs
Name | Type | Default | Description |
---|---|---|---|
activeView |
|
|
Specifies the initial view that the MultiViewCalendar displays when it loads (see example).
By default, the active view is You have to set |
adaptiveMode |
|
|
Determines whether the component uses adaptive rendering for different screen sizes. By default, adaptive rendering is disabled. |
adaptiveSubtitle |
|
|
Specifies the subtitle text displayed in the header of the action sheet.
Applies only when |
adaptiveTitle |
|
|
Specifies the title text for the input element and the header of the action sheet.
Applies only when |
allowReverse |
|
|
Determines whether users can select dates in reverse order.
When you set |
anchor |
|
Specifies the element that serves as an anchor for the popup. The popup opens next to this element. For more information, refer to the section on aligning to specific components. | |
anchorAlign |
|
Specifies the alignment point for the anchor element. For more information, refer to the section on positioning. | |
animate |
|
|
Controls the popup animations.
When you set |
animateNavigation |
|
|
Determines whether to animate transitions when users navigate between views. |
appendTo |
|
|
Specifies where to render the popup container. By default, the popup renders in the root component. |
bottomView |
|
|
Specifies the lowest view level that users can navigate to (see example). |
collision |
|
|
Configures how the popup behaves when it encounters viewport boundaries. For more information, refer to the article on viewport boundary detection. |
disabled |
|
|
Determines whether the MultiViewCalendar is interactive (see example).
When you set |
disabledDates |
|
Specifies the dates in the MultiViewCalendar that you want to disable (see example). | |
focusedDate |
|
Specifies the focused date of the MultiViewCalendar component. Defines which date receives focus when the component loads (see example). If the MultiViewCalendar is out of the min or max range, it normalizes the defined | |
margin |
|
Specifies the margin around the popup in pixels. Creates empty space between the popup and its anchor element. | |
max |
|
|
Specifies the maximum date that users can select (see example). |
min |
|
|
Specifies the minimum date that users can select (see example). |
popupAlign |
|
Specifies the alignment point for the popup element. For more information, refer to the section on positioning. | |
showOtherMonthDays |
|
|
Determines whether to display days from adjacent months in the current month view (see example). |
showViewHeader |
|
|
Determines whether to display a header for each view (see example). For example, displays the month name in the month view. |
topView |
|
|
Specifies the highest view level that users can navigate to (see example). |
views |
|
|
Specifies the number of calendar views to display side by side. |
weekNumber |
|
|
Determines whether to display week numbers in the |
Fields
Name | Type | Default | Description |
---|---|---|---|
calendar |
|
Gets the active calendar that displays in the popup. When the popup is closed, the property returns | |
isActive |
|
Gets the active state of the component.
Returns | |
show |
|
Gets or sets the visibility state of the component. |
Events
Name | Type | Description |
---|---|---|
cancel |
|
Fires when the popup closes due to an |
close |
|
Fires when the popup is about to close (see example). You can prevent this event to keep the popup open. |
blur |
|
Fires when the calendar element loses focus (see example). |
focus |
|
Fires when the calendar element receives focus (see example). |
open |
|
Fires when the popup is about to open (see example). You can prevent this event to keep the popup closed. |
Methods
activate |
---|
Opens the popup component and focuses the calendar. |
focus |
---|
Focuses the calendar if it is available. |
hasActiveContent | ||||
---|---|---|---|---|
Checks if a focused element is inside the popup. | ||||
|
toggle | ||||||
---|---|---|---|---|---|---|
Toggles the visibility of the popup or action sheet.
When you use the | ||||||
|