src/components/pageComponent/side-options/tab-export/dropdown.js
//If it does show the symbol, else hide it
If it does show the symbol, else hide it
If it does show the symbol else hide it
function filter(word) {
      let length = items.length
      let collection = []
      let hidden = 0
      for (let i = 0; i < length; i++) {
        if (items[i].value.toString().toLowerCase().includes(word)) {
          $(items[i]).show()
        } else {
          $(items[i]).hide()
          hidden++
        }
      }
      if (hidden === length) {
        $(dropdown).find('.dropdown_empty').show();
      } else {
        $(dropdown).find('.dropdown_empty').hide();
      }
    }
function filter ( word ) { let length = items . length let collection = [ ] let hidden = 0 for ( let i = 0 ; i < length ; i ++ ) { if ( items [ i ] . value . toString ( ) . toLowerCase ( ) . includes ( word ) ) { $ ( items [ i ] ) . show ( ) } else { $ ( items [ i ] ) . hide ( ) hidden ++ } } if ( hidden === length ) { $ ( dropdown ) . find ( '.dropdown_empty' ) . show ( ) ; } else { $ ( dropdown ) . find ( '.dropdown_empty' ) . hide ( ) ; } }
If it does show the symbol, else hide it
If it does show the symbol else hide it
//If all items are hidden, show the empty view