Initial commit
This commit is contained in:
11
wwwroot/lib/popper.js/esm/utils/getOppositePlacement.js
Normal file
11
wwwroot/lib/popper.js/esm/utils/getOppositePlacement.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var hash = {
|
||||
left: 'right',
|
||||
right: 'left',
|
||||
bottom: 'top',
|
||||
top: 'bottom'
|
||||
};
|
||||
export default function getOppositePlacement(placement) {
|
||||
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
||||
return hash[matched];
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user