mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
I believe IDatepickerPopupConfig has everything in IDatepickerConfig, plus additional things, so it should extend IDatepickerConfig. (#27452)
This commit is contained in:
committed by
Wesley Wigham
parent
e1d9a3c9f4
commit
fa54ed4ad3
@@ -57,6 +57,28 @@ testApp.config((
|
||||
/**
|
||||
* $datepickerPopupConfig tests
|
||||
*/
|
||||
$datepickerPopupConfig.datepickerMode = 'month';
|
||||
$datepickerPopupConfig.formatDay = 'd';
|
||||
$datepickerPopupConfig.formatDayHeader = 'E';
|
||||
$datepickerPopupConfig.formatDayTitle = 'dd-MM-yyyy';
|
||||
$datepickerPopupConfig.formatMonth = 'M';
|
||||
$datepickerPopupConfig.formatMonthTitle = 'yy';
|
||||
$datepickerPopupConfig.formatYear = 'y';
|
||||
$datepickerPopupConfig.initDate = '1389586124979';
|
||||
$datepickerPopupConfig.maxDate = '1389586124979';
|
||||
$datepickerPopupConfig.maxMode = 'month';
|
||||
$datepickerPopupConfig.minDate = '1389586124979';
|
||||
$datepickerPopupConfig.minMode = 'month';
|
||||
$datepickerPopupConfig.shortcutPropagation = true;
|
||||
$datepickerPopupConfig.showWeeks = false;
|
||||
$datepickerPopupConfig.startingDay = 1;
|
||||
$datepickerPopupConfig.yearRange = 10;
|
||||
$datepickerPopupConfig.monthColumns = 3;
|
||||
$datepickerPopupConfig.yearColumns = 9;
|
||||
$datepickerPopupConfig.yearRows = 6;
|
||||
$datepickerPopupConfig.ngModelOptions.allowInvalid = false;
|
||||
$datepickerPopupConfig.ngModelOptions.timezone = "EST";
|
||||
$datepickerPopupConfig.ngModelOptions.updateOn = "click";
|
||||
$datepickerPopupConfig.altInputFormats = ["mm/dd/YYYY", "mm-dd-YY"];
|
||||
$datepickerPopupConfig.appendToBody = true;
|
||||
$datepickerPopupConfig.currentText = 'Select Today';
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
// Type definitions for Angular UI Bootstrap 0.13.3
|
||||
// Project: https://github.com/angular-ui/bootstrap
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>, Ryan Southgate <https://github.com/ry8806>
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>,
|
||||
// Ryan Southgate <https://github.com/ry8806>
|
||||
// Alfie Johnson <https://github.com/alfiej>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -227,7 +229,7 @@ declare module 'angular' {
|
||||
customClass?: DatepickerCallback<string>;
|
||||
}
|
||||
|
||||
interface IDatepickerPopupConfig {
|
||||
interface IDatepickerPopupConfig extends IDatepickerConfig {
|
||||
|
||||
/**
|
||||
* A list of alternate formats acceptable for manual entry.
|
||||
|
||||
Reference in New Issue
Block a user