checkValidItems(items) {
    if (items.length < 12 && items.length > 0) {
      PNotify.notice({
        text: 'It`s all!',
        ...this.pnotifySettings(),
        minHeight: '50px',
      });

      spinner.hide(this.spinner);
    } else if (!items.length) {
      PNotify.error({
        text:
          'No results were found for your request. Please enter valid data!',
        ...this.pnotifySettings(),
        width: '260px',
        minHeight: '120px',
      });

      spinner.hide(this.spinner);
      return;
    } else {
      PNotify.success({
        text: 'Successful request!',
        ...this.pnotifySettings(),
      });
    }
  }
/**
   * Method for validated list card items
   */
Method for validated list card items
Method for validated list card items
checkValidItems(items) {
    if (items.length < 12 && items.length > 0) {
      PNotify.notice({
        text: 'It`s all!',
        ...this.pnotifySettings(),
        minHeight: '50px',
      });
      spinner.hide(this.spinner);
    } else if (!items.length) {
      PNotify.error({
        text:
          'No results were found for your request. Please enter valid data!',
        ...this.pnotifySettings(),
        width: '260px',
        minHeight: '120px',
      });
      spinner.hide(this.spinner);
      return;
    } else {
      PNotify.success({
        text: 'Successful request!',
        ...this.pnotifySettings(),
      });
    }
  }
checkValidItems ( items ) { if ( items . length < 12 && items . length > 0 ) { PNotify . notice ( { text : 'It`s all!' , ... this . pnotifySettings ( ) , minHeight : '50px' , } ) ; spinner . hide ( this . spinner ) ; } else if ( ! items . length ) { PNotify . error ( { text : 'No results were found for your request. Please enter valid data!' , ... this . pnotifySettings ( ) , width : '260px' , minHeight : '120px' , } ) ; spinner . hide ( this . spinner ) ; return ; } else { PNotify . success ( { text : 'Successful request!' , ... this . pnotifySettings ( ) , } ) ; } }
Method for validated list card items
Method for validated list card items