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

avoid displaying search box #16

Open
shagabay opened this issue Apr 23, 2018 · 5 comments
Open

avoid displaying search box #16

shagabay opened this issue Apr 23, 2018 · 5 comments

Comments

@shagabay
Copy link

hi,

is there any way to prevent search boxes from being displayed?

often times, they are not necessary and simply take up space.

hacks are also welcome :)

thanks
sharon

@plantain-00
Copy link
Owner

v7.14.0 added minItemCountIfNeedFilter, set it Infinity will hide the search box.

@shagabay
Copy link
Author

shagabay commented Apr 24, 2018 via email

@plantain-00
Copy link
Owner

minItemCountIfNeedFilter should be a number(not a string), so :minItemCountIfNeedFilter="9999"

@shagabay
Copy link
Author

shagabay commented May 4, 2018

thanks! still didn't get it to work but will eventually..

@fritz-net
Copy link

I solved it by using the follwing code in my componets typescript:
FilterCount: number = Infinity;

and in the vue html file I set it as property:

            <json-editor :schema="schema"
                         :initial-value="model"
                         @update-value="updateValue($event)"
                         theme="bootstrap4"
                         disableCollapse="true"
                         :minItemCountIfNeedFilter=FilterCount
                         >
            </json-editor>

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