DefinitelyTyped/types/jquery-match-height/jquery-match-height-tests.ts
2017-06-01 16:22:57 -04:00

38 lines
892 B
TypeScript

/* from documentation at https://github.com/liabru/jquery-match-height */
$(document).ready(() => {
$(".containers").matchHeight();
$(".containers").matchHeight({
byRow: true,
property: "height",
remove: true}
);
});
$.fn.matchHeight._update();
$.fn.matchHeight._rows($('.containers'));
$('.containers').matchHeight({ remove: true });
// tslint:disable-next-line no-used-variable
$.fn.matchHeight._beforeUpdate = (event, groups) => {
// do something before any updates are applied
};
// tslint:disable-next-line no-used-variable
$.fn.matchHeight._afterUpdate = (event, groups) => {
// do something after all updates are applied
};
let elements = $('.containers');
let options = {byRow: true};
$.fn.matchHeight._apply(elements, options);
$.fn.matchHeight._throttle = 80;
$.fn.matchHeight._maintainScroll = true;
$.fn.matchHeight._groups;