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

Extend Request: Ability to target a specific element within the gridder-list #57

Open
justinbhayes opened this issue Oct 6, 2017 · 4 comments

Comments

@justinbhayes
Copy link

Can you add the ability to target a specific element within the gridder list as the trigger to open the gridder content/show area?

@orion3dgames
Copy link
Owner

orion3dgames commented Oct 6, 2017 via email

@justinbhayes
Copy link
Author

Thanks for the quick reply. I should have been more specific. I want to remove the regular trigger and then add a new one. For example, I only want clicking "Member Title #" to trigger the associated gridder content. https://is.gd/C6Il4M

@justinbhayes
Copy link
Author

Ideally I would like to change the selector for the click event, but that isn't working.
_this.on("click", ".gridder-list h4", function (e) { e.preventDefault(); var myself = $(this); openExpander(myself); });

I assume the following line needs to be updated to target it's parent .gridder-list?
var myself = $(this);

@justinbhayes
Copy link
Author

I was able to get my gridder functioning the way I wanted with this update.
_this.on("click", ".bio", function (e) { e.preventDefault(); var myself = $(this).closest("li"); openExpander(myself); });

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

No branches or pull requests

2 participants