@financial-times/o-expander
Version:
Content-aware helper for expanding and collapsing content or lists.
13 lines (9 loc) • 301 B
JavaScript
import Expander from './src/js/expander.js';
const constructAll = function () {
Expander.init();
document.removeEventListener('o.DOMContentLoaded', constructAll);
};
if (typeof document !== 'undefined') {
document.addEventListener('o.DOMContentLoaded', constructAll);
}
export default Expander;