extensions/amp-carousel/0.2/amp-carousel.js
/**
   * Updates the UI of the <amp-carousel> itself, but not the internal
   * implementation.
   * @private
   */
Updates the UI of the  itself, but not the internal
implementation.
@private
Updates the UI of the itself but not the internal implementation . @private
updateUi_() {
    const index = this.carousel_.getCurrentIndex();
    const bothDisabled = this.hadTouch_ && !this.showControls_;
    const prevDisabled = bothDisabled || this.carousel_.isAtStart();
    const nextDisabled = bothDisabled || this.carousel_.isAtEnd();
    this.prevButton_.classList.toggle('amp-disabled', prevDisabled);
    this.prevButton_.setAttribute('aria-disabled', prevDisabled);
    this.prevButton_.title = this.getPrevButtonTitle_(index);
    this.prevButton_.tabIndex = prevDisabled ? -1 : 0;
    this.nextButton_.classList.toggle('amp-disabled', nextDisabled);
    this.nextButton_.setAttribute('aria-disabled', nextDisabled);
    this.nextButton_.title = this.getNextButtonTitle_(index);
    this.nextButton_.tabIndex = nextDisabled ? -1 : 0;
  }
updateUi_ ( ) { const index = this . carousel_ . getCurrentIndex ( ) ; const bothDisabled = this . hadTouch_ && ! this . showControls_ ; const prevDisabled = bothDisabled || this . carousel_ . isAtStart ( ) ; const nextDisabled = bothDisabled || this . carousel_ . isAtEnd ( ) ; this . prevButton_ . classList . toggle ( 'amp-disabled' , prevDisabled ) ; this . prevButton_ . setAttribute ( 'aria-disabled' , prevDisabled ) ; this . prevButton_ . title = this . getPrevButtonTitle_ ( index ) ; this . prevButton_ . tabIndex = prevDisabled ? - 1 : 0 ; this . nextButton_ . classList . toggle ( 'amp-disabled' , nextDisabled ) ; this . nextButton_ . setAttribute ( 'aria-disabled' , nextDisabled ) ; this . nextButton_ . title = this . getNextButtonTitle_ ( index ) ; this . nextButton_ . tabIndex = nextDisabled ? - 1 : 0 ; }
Updates the UI of the <amp-carousel> itself, but not the internal
 implementation.
Updates the UI of the <amp - carousel > itself but not the internal implementation .