MCPcopy Create free account
hub / github.com/ampproject/amphtml / updateAlignment

Method updateAlignment

extensions/amp-base-carousel/0.1/carousel.js:509–513  ·  view source on GitHub ↗

* @param {string} alignment How to align slides when snapping or scrolling * to the propgramatticaly (auto advance or next/prev). This should be * either "start" or "cemter".

(alignment)

Source from the content-addressed store, hash-verified

507 * either "start" or "cemter".
508 */
509 updateAlignment(alignment) {
510 this.alignment_ =
511 alignment === 'start' ? Alignment.START : Alignment.CENTER;
512 this.updateUi();
513 }
514
515 /**
516 * @param {boolean} autoAdvance Whether or not to autoadvance. Changing this

Callers 3

getAttributeConfig_Method · 0.80
getAttributeConfig_Method · 0.80
updateType_Method · 0.80

Calls 1

updateUiMethod · 0.95

Tested by

no test coverage detected