bs-datepicker.config.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { DatepickerRenderOptions, BsDatepickerViewMode, DatepickerDateCustomClasses } from './models';
  2. /**
  3. * For date range picker there are `BsDaterangepickerConfig` which inherits all properties,
  4. * except `displayMonths`, for range picker it default to `2`
  5. */
  6. export declare class BsDatepickerConfig implements DatepickerRenderOptions {
  7. /** sets use adaptive position */
  8. adaptivePosition: boolean;
  9. /** sets use UTC date time format */
  10. useUtc: boolean;
  11. /** turn on/off animation */
  12. isAnimated: boolean;
  13. value?: Date | Date[];
  14. isDisabled?: boolean;
  15. /**
  16. * Default min date for all date/range pickers
  17. */
  18. minDate?: Date;
  19. /**
  20. * Default max date for all date/range pickers
  21. */
  22. maxDate?: Date;
  23. /**
  24. * Default date custom classes for all date/range pickers
  25. */
  26. dateCustomClasses: DatepickerDateCustomClasses[];
  27. daysDisabled?: number[];
  28. /**
  29. * Disable specific dates
  30. */
  31. datesDisabled?: Date[];
  32. /**
  33. * Makes dates from other months active
  34. */
  35. selectFromOtherMonth?: boolean;
  36. /**
  37. * Makes dates from other months active
  38. */
  39. selectWeek?: boolean;
  40. /**
  41. * Add class to current day
  42. */
  43. customTodayClass?: string;
  44. /**
  45. * Default mode for all date pickers
  46. */
  47. minMode?: BsDatepickerViewMode;
  48. /** CSS class which will be applied to datepicker container,
  49. * usually used to set color theme
  50. */
  51. containerClass: string;
  52. displayMonths: number;
  53. /**
  54. * Allows to hide week numbers in datepicker
  55. */
  56. showWeekNumbers: boolean;
  57. dateInputFormat: string;
  58. rangeSeparator: string;
  59. /**
  60. * Date format for date range input field
  61. */
  62. rangeInputFormat: string;
  63. monthTitle: string;
  64. yearTitle: string;
  65. dayLabel: string;
  66. monthLabel: string;
  67. yearLabel: string;
  68. weekNumbers: string;
  69. }