addYear(num, event) {
    event.preventDefault()
    this.setState({
      date: this.startOfMonth().plus(Duration.fromObject({year: num})),
    })
    if (this.props.focuser) {
      this.props.focuser()
    }
  }
/**
   * Move the focus year up n years (or back |n| years if n is negative).
   *
   * This function does not change the date in the input (only calendar display,
   * so we can get away with using the first of the month like this.
   * @param {int} num - the number of years to move the focus year
   * @param {Event} event - the event that caused this handler to be invoked
   *   (e.g. the click event from the next or previous button on the calendar)
   * @return {void}
   */
Move the focus year up n years (or back |n| years if n is negative).
This function does not change the date in the input (only calendar display,
so we can get away with using the first of the month like this.
@param {int} num - the number of years to move the focus year
@param {Event} event - the event that caused this handler to be invoked

@return {void}
Move the focus year up n years ( or back |n| years if n is negative ) . This function does not change the date in the input ( only calendar display so we can get away with using the first of the month like this . @param { int } num - the number of years to move the focus year @param { Event } event - the event that caused this handler to be invoked @return { void }
addYear(num, event) {
    event.preventDefault()
    this.setState({
      date: this.startOfMonth().plus(Duration.fromObject({year: num})),
    })
    if (this.props.focuser) {
      this.props.focuser()
    }
  }
addYear ( num , event ) { event . preventDefault ( ) this . setState ( { date : this . startOfMonth ( ) . plus ( Duration . fromObject ( { year : num } ) ) , } ) if ( this . props . focuser ) { this . props . focuser ( ) } }
Move the focus year up n years (or back |n| years if n is negative).
Move the focus year up n years ( or back |n| years if n is negative ) .