Tables

To use the table component:

<md-table>
  Table
</md-table>

Note: For more details about the tables and which tables you can use in your project please see the Table section from vuematerial.io and our live example of tables from Vue Material Dashboard Pro Tables

Simple Table

assignment

Simple Table

1
Dakota Rice
Niger
Oud-Turnhout
$36.738
2
Minerva Hooper
Curaçao
Sinaai-Waas
$23,789
3
Sage Rodriguez
Netherlands
Baileux
$56,142
4
Philip Chaney
Korea, South
Overland Park
$38,735
5
Doris Greene
Malawi
Feldkirchen in Kärnten
$63,542
<template>
  <div class="content">
    <div class="md-layout">
      <div class="md-layout-item md-medium-size-100 md-xsmall-size-100 md-size-100">
        <md-card>
          <md-card-header class="md-card-header-icon md-card-header-green">
            <div class="card-icon">
              <md-icon>assignment</md-icon>
            </div>
            <h4 class="title">Simple Table</h4>
          </md-card-header>
          <md-card-content>
            <md-table v-model="tableData" table-header-color="green">
              <md-table-row slot="md-table-row" slot-scope="{ item }">
                <md-table-cell md-label="ID">{{ item.id }}</md-table-cell>
                <md-table-cell md-label="Name">{{ item.name }}</md-table-cell>
                <md-table-cell md-label="Country">{{ item.country }}</md-table-cell>
                <md-table-cell md-label="City">{{ item.city }}</md-table-cell>
                <md-table-cell md-label="Salary">{{ item.salary }}</md-table-cell>
              </md-table-row>
            </md-table>
          </md-card-content>
        </md-card>
      </div>
    </div>
  </div>
</template>

<script>
export default{
  data() {
    return {
      selected: [],
      tableData: [{
        id: 1,
        name: 'Dakota Rice',
        salary: '$36.738',
        country: 'Niger',
        city: 'Oud-Turnhout'
      },
        {
          id: 2,
          name: 'Minerva Hooper',
          salary: '$23,789',
          country: 'Curaçao',
          city: 'Sinaai-Waas'
        },
        {
          id: 3,
          name: 'Sage Rodriguez',
          salary: '$56,142',
          country: 'Netherlands',
          city: 'Baileux'
        },
        {
          id: 4,
          name: 'Philip Chaney',
          salary: '$38,735',
          country: 'Korea, South',
          city: 'Overland Park'
        },
        {
          id: 5,
          name: 'Doris Greene',
          salary: '$63,542',
          country: 'Malawi',
          city: 'Feldkirchen in Kärnten'
        }]
    }
  }
}
</script>

SimpleTable Attributes

Attribute Description Type Accepted values Default
table-header-color table header color string orange/red/rose/blue/green green