It is posible to disable byRow option with data-api?
7iomka opened this issue · 2 comments
7iomka commented
Any ideas? Thanks!
liabru commented
It's not currently an option, so I'll consider this a feature request.
I suggest using the JS API instead when you need to do something more complex, as the data API is designed for simple cases. It's possible I may extend it in future though.
mariovalney commented
Data API is very usefull. I love it.
@7iomka You can create "your own Data API" to use JS API like the library:
// On document ready
var mnrhGroups = {};
$('[data-match-no-row-height]').each(function() {
var element = $(this),
groupId = element.attr('data-match-no-row-height');
if (groupId in mnrhGroups) {
mnrhGroups[groupId] = mnrhGroups[groupId].add(element);
} else {
mnrhGroups[groupId] = element;
}
});
// Apply matchHeight
$.each(mnrhGroups, function() {
this.matchHeight({
byRow: false
});
});