No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    "TypeError: Cannot read property 'length' of undefined" in Data Table Filter

    Help
    1
    1
    523
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      theara last edited by

      My code

      // Template
      <q-table
            :data="tableData"
            :columns="columns"
            :filter="filter"
            :filter-method="tableFilter"
            title="Table Title"
            row-key="name"
          >
            <template
              slot="top-right"
              slot-scope="props"
            >
              <q-search
                v-model="filter"
                hide-underline
              />
            </template>
          </q-table>
      -----------
      // Data
            filter: '',
            columns: [
              {
                name: 'name',
                required: true,
                label: 'Name',
                align: 'left',
                field: 'name',
                sortable: true,
              },
              ...
            ],
            tableData: [],
      ------
      // Methods
          tableFilter(rows, terms, cols, cellValue) {
            console.log(rows, terms, cols, cellValue)
          },
      

      I get this error when type in Filter Inputbox

      1 Reply Last reply Reply Quote 0
      • First post
        Last post