Tables

To use the table component, import it:

import {SimpleTable} from 'src/components'
import {OrderedTable} from 'src/components'

Global Usage

Vue.component(SimpleTable)
Vue.component(OrderedTable)

For Local Usage

export default {
  components: {
    SimpleTable,
    OrderedTable
  }
}

Note: For more details about the tables and which tables you can use in your project please see the Table section from vuematerial.io

Simple Table

Simple Table

Here is a subtitle for this table

Dakota Rice
Niger
Oud-Turnhout
$36,738
Minerva Hooper
Curaçao
Sinaai-Waas
$23,738
Sage Rodriguez
Netherlands
Overland Park
$56,142
Philip Chaney
Korea, South
Gloucester
$38,735
Doris Greene
Malawi
Feldkirchen in Kārnten
$63,542
Mason Porter
Chile
Gloucester
$78,615
<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 data-background-color="green">
            <h4 class="title">Simple Table</h4>
            <p class="category">Here is a subtitle for this table</p>
          </md-card-header>
          <md-card-content>
            <simple-table table-header-color="green"></simple-table>
          </md-card-content>
        </md-card>
      </div>
    </div>
  </div>
</template>

<script>
import {
  SimpleTable
} from '@/components'

export default{
  components: {
    SimpleTable
  }
}
</script>

Ordered Table

Ordered Table

Here is a subtitle for this table

1
Dakota Rice
$36,738
Niger
Oud-Turnhout
2
Minerva Hooper
$23,738
Curaçao
Sinaai-Waas
3
Sage Rodriguez
$56,142
Netherlands
Overland Park
4
Philip Chaney
$38,735
Korea, South
Gloucester
<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 data-background-color="green">
            <h4 class="title">Ordered Table</h4>
            <p class="category">Here is a subtitle for this table</p>
          </md-card-header>
          <md-card-content>
            <ordered-table table-header-color="green"></ordered-table>
          </md-card-content>
        </md-card>
      </div>
    </div>
  </div>
</template>

<script>
import {
  OrderedTable
} from '@/components'

export default{
  components: {
    OrderedTable
  }
}
</script>