Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is posible to disable byRow option with data-api? #169

Open
7iomka opened this issue Dec 26, 2017 · 2 comments
Open

It is posible to disable byRow option with data-api? #169

7iomka opened this issue Dec 26, 2017 · 2 comments

Comments

@7iomka
Copy link

7iomka commented Dec 26, 2017

Any ideas? Thanks!

@liabru
Copy link
Owner

liabru commented Jan 11, 2018

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
Copy link

mariovalney commented Jan 17, 2018

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
    });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants