[Vuejs]-Vue search v-data-table with computed values not working

0๐Ÿ‘

I found the answer here. My data is now sortable and searchable.

Updated Code:

headers: [
        {
          text: "Company",
          align: "start",
          sortable: true,
          value: "company.name",
        },
        { text: "Trade", sortable: true, value: "trade.name" },
        { text: "Region", sortable: true, value: "region.name" },
        { text: "Project", sortable: true, value: "project.name" },
        { text: "Rating", sortable: true, value: "rating" },
        { text: "B&G VDC Manager", sortable: true, value: "manager.name" },
        { text: "Trade Coordinator", sortable: true, value: "coordinator.name" },
        { text: "Comments", sortable: true, value: "comment" },
        { text: "Actions", sortable: true,align:"center", value: "actions" },
        { text: "EntryId", sortable: true, value: "eid", align: " d-none" },

solution link stack overflow

Leave a comment