Katochimoto/xblocks

View on GitHub
src/utils/popupDefaultOptions.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * The default setting for the popup
 * @see http://tether.io/#options
 * @returns {Object}
 * @this xb.Popup
 */
export default function () {
    return {
        'attachment': 'middle center',
        'classPrefix': this.xtagName,
        'element': this,
        'enabled': false,
        'optimizations': {
            'gpu': true
        },
        'target': this.ownerDocument.body,
        'targetAttachment': 'middle center',
        'targetModifier': 'visible'
    };
}