/*
Copyright © 2016-2019 Lidor Systems. All rights reserved.
This file is part of the "IntegralUI Web" Library.
The contents of this file are subject to the IntegralUI Web License, and may not be used except in compliance with the License.
A copy of the License should have been installed in the product's root installation directory or it can be found at
http://www.lidorsystems.com/products/web/studio/license-agreement.aspx.
This SOFTWARE is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language
governing rights and limitations under the License. Any infringement will be prosecuted under applicable laws.
*/
import { Component, ViewContainerRef, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core';
@Component({
selector: '',
template: `
IntegralUI DatePicker is a native Angular component that allows the user to select a date by using a drop-down Calendar component. This component is fully customizable via CSS.
The following properties and events are supported:
- allowAnimation - Determines whether component appearance is animated or not
- appRef - holds a reference to application view
- calendarFirstDayOfWeek - Specifies the first day of the week in the calendar
- calendarSize - Specifies the calendar width and height in pixels.
- controlStyle - Specifies an object that contains all style settings for the component
- data - Specifies an object that holds data related to the component
- enabled - Determines whether the component is enabled or disabled
- format - Determines whether dates are displayed using standard or custom formatting
- formatOptions - An object that describes the date components in custom formatting
- locales - Specifies the current localization string in use
- name - Uniquely identifies the component
- selectedDate - The date that is selected
- size - Specifies the component width and height in pixels.
- state - Specifies the component state: disabled, hovered, etc.
- dateChanged - Occurs when selected date property changes
- enabledChanged - Occurs when enabled property changes
- stateChanged - Occurs when component state changes
For more information check out the source code of this sample (datepicker/datepicker-overview.ts) file.
`,
encapsulation: ViewEncapsulation.None
})
export class DatePickerOverviewSample {
@ViewChild('application', {read: ViewContainerRef, static: false}) applicationRef: ViewContainerRef;
public ctrlStyle: any = {
general: {
normal: 'dtpckr-ovw',
}
}
}