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

gridder by default first open preview #58

Closed
vish9833 opened this issue Oct 21, 2017 · 2 comments
Closed

gridder by default first open preview #58

vish9833 opened this issue Oct 21, 2017 · 2 comments

Comments

@vish9833
Copy link

Hi,
How can i do this function..

@orion3dgames
Copy link
Owner

orion3dgames commented Oct 22, 2017

You can do something like this:

$(".gridder").gridderExpander({
        // other options
        onStart: function () {
            // You can manually specifiy one like this.
            jQuery('.gridder .gridder-list:nth-child(1)').trigger('click');
            // OR
            // You can open the relevant one via a hash in the url
            index_position = document.URL.indexOf("#");
            if(index_position != -1) {
               anchor_name = document.URL.substring(index_position);
               $(anchor_name).trigger("click");
            }
        },
    });

@vish9833
Copy link
Author

Thank you!

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