MCPcopy Create free account
hub / github.com/docker/getting-started / getOppositeVariation

Function getOppositeVariation

app/src/static/js/react-bootstrap.js:4450–4458  ·  view source on GitHub ↗

* Get the opposite placement variation of the given one * @method * @memberof Popper.Utils * @argument {String} placement variation * @returns {String} flipped placement variation

(variation)

Source from the content-addressed store, hash-verified

4448
4449
4450function getOppositeVariation(variation) {
4451 if (variation === 'end') {
4452 return 'start';
4453 } else if (variation === 'start') {
4454 return 'end';
4455 }
4456
4457 return variation;
4458}
4459/**
4460 * List of accepted placements to use as values of the `placement` option.<br />
4461 * Valid placements are:

Callers 1

flipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…