* Get the opposite placement variation of the given one * @method * @memberof Popper.Utils * @argument {String} placement variation * @returns {String} flipped placement variation
(variation)
| 4448 | |
| 4449 | |
| 4450 | function 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: |
no outgoing calls
no test coverage detected
searching dependent graphs…