schema-based-json-editor icon indicating copy to clipboard operation
schema-based-json-editor copied to clipboard

avoid displaying search box

Open shagabay opened this issue 7 years ago • 5 comments

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

shagabay avatar Apr 23 '18 23:04 shagabay

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

plantain-00 avatar Apr 24 '18 00:04 plantain-00

UPDATE: i am starting to like the searchbox:)

in any case, i can't seem to make the new property work:

      <json-editor
          v-if="visible"
          :schema="schema"
          :initial-value="value"
          @update-value="updateValue($event)"
          theme="bootstrap4"
          icon="fontawesome4"
          minItemCountIfNeedFilter=9999>
      </json-editor>

package.json:

"vue-schema-based-json-editor": "^7.14.0",

thanks

On 24 April 2018 at 03:38, York Yao [email protected] wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/plantain-00/schema-based-json-editor/issues/16#issuecomment-383765721, or mute the thread https://github.com/notifications/unsubscribe-auth/AGDgeEoL3gIHBoZ6MtTiXiMFDOuzCrfnks5trnPugaJpZM4Tgw2- .

shagabay avatar Apr 24 '18 06:04 shagabay

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

plantain-00 avatar Apr 24 '18 07:04 plantain-00

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

shagabay avatar May 04 '18 22:05 shagabay

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>

fritz-net avatar Oct 22 '20 10:10 fritz-net