How to use the bpk-component-calendar.DateUtils.addMonths function in bpk-component-calendar

To help you get started, we’ve selected a few bpk-component-calendar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Skyscanner / backpack / packages / bpk-component-scrollable-calendar / stories.js View on Github external
.add('Scrollable Calendar - with focused date', () => (
    
  ))
  .add('Scrollable Calendar in a tall container', () => (
github Skyscanner / backpack / packages / bpk-component-scrollable-calendar / src / utils.js View on Github external
const getMonthsArray = (startDate, count) => {
  const months = [];

  for (let i = 0; i < count + 1; i += 1) {
    months.push(DateUtils.addMonths(startDate, i));
  }

  return months;
};
export default getMonthsArray;
github Skyscanner / backpack / packages / bpk-docs / src / pages / WebScrollableCalendarPage / WebScrollableCalendarPage.js View on Github external
],
  },
  {
    id: 'localised',
    title: 'Localised scrollable calendar',
    examples: [
      ,
    ],
  },
  {
    id: 'grid',
    title: 'Scrollable calendar grid',
    examples: [