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

Manualy open the submenu #254

Closed
stephane-r opened this issue Jun 6, 2019 · 5 comments
Closed

Manualy open the submenu #254

stephane-r opened this issue Jun 6, 2019 · 5 comments

Comments

@stephane-r
Copy link

Hi !

Is it possible to open submenu manualy ? I updated my whitelist after ajax request, but the submenu stay closed.

I see show method, maybe i can toggle the submenu with this ?

Thank you !

@yairEO
Copy link
Owner

yairEO commented Jun 6, 2019

const new tagify = Tagify(...)
tagify.dropdown.show.call(tagify, 'somevalue') // will render the dropdown

@stephane-r
Copy link
Author

Mmmm sorry, the submenu is not opened with this :


    if (props.settings) {
      this.tagify.settings.whitelist = props.settings.whitelist;
      this.tagify.dropdown.show.call(this.tagify, 'somevalue');
    }

I need to get the random value from my whitelist ?

@yairEO
Copy link
Owner

yairEO commented Jun 6, 2019

No need for a random value, or any value if you don't want to pre-filter the suggestions dropdown list

@stephane-r
Copy link
Author

Okay.

My previous message don't work (with React component). Maybe i need other params ?

@yairEO
Copy link
Owner

yairEO commented Jun 6, 2019

It should have worked. Check the function tagify.dropdown.show is actually called, debug Tagify itself. maybe i'ts not called..

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

2 participants