mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
38 lines
892 B
TypeScript
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;
|