Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dynamically populate vue material table

<md-table v-model="previewData" md-sort="name" md-sort-order="asc" md-fixed-header>
   <md-table-row slot="md-table-row" slot-scope="{ item }">
      <md-table-cell
         v-for="head in headers"
         key="head"
         :md-label="head"
         :md-sort-by="head"
      >
         {{ item[head] }}
      </md-table-cell>
   </md-table-row>
</md-table>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dynamically #populate #vue #material #table
ADD COMMENT
Topic
Name
2+7 =