Toast Ui.vue Grid Versions Save

This repository is DEPRECATED! GO TO 👉

v2.1.0

4 years ago

feat

  • #12 use option directly
<grid
  :data="gridProps.data"
  :columns="gridProps.columns"
  :options="gridProps.options"
  :theme="gridProps.myTheme"
  @check="onCheck"
  @uncheck="onUnCheck"
  :rowHeaders="gridProps.rowHeaders"
  :columnOptions="gridProps.columnOptions"
></grid>

fix

  • #11 Add 'object' to data type

Deprecate Method

  • setLanguage
  • applyTheme

Use static method, please.

import TuiGrid from 'tui-grid';

TuiGrid.setLanguage('ko');
TuiGrid.applyTheme('striped');

v2.0.1

4 years ago

Bugfixes

  • Fixed that custom event of grid is registered on props.(#10)
  • To prevent memory leak, calls destroy method of grid on beforeDestroy lifecycle method.(#10)

Chore

  • Update tui-grid version to ^4.5.0.

v2.0.0

4 years ago

New Vue Wrapper For TOAST UI Grid 4.0 🎉🎉🎉

Breaking Changes

prop name change

  • rowData -> data
  • columnData -> columns

TOAST UI Grid has its own reactivity system, and does not use the reactivity system of Vue. So, instead of adding props in the data, declare props in the created lifecycle method.

// v1.0.0
<template>
  <grid
    :rowData="data" 
    :columnData="columns" 
  />
</template>
<script>
import 'tui-grid/dist/tui-grid.css'
import { Grid } from '@toast-ui/vue-grid'

export default {
  components: {
    'grid': Grid
  },
  data() {
    return {
      data: [ // for rowData prop
        {
          name: 'Beautiful Lies',
          artist: 'Birdy'
        },
        {
          name: 'X',
          artist: 'Ed Sheeran'
        }
      ],
      columns: [ // for columnData prop
        {
          header: 'Name',
          name: 'name',
        },
        {
          header: 'Artist',
          name: 'artist'
        }
        ]
      }
    }
  }
}
</script>


// v2.0.0
<template>
  <grid
    :data="gridProps.data" 
    :columns="gridProps.columns" 
  />
</template>
<script>
import 'tui-grid/dist/tui-grid.css'
import { Grid } from '@toast-ui/vue-grid'

export default {
  components: {
    'grid': Grid
  },
  created() {
    this.gridProps = {
      data: [ // for rowData prop
        {
          name: 'Beautiful Lies',
          artist: 'Birdy'
        },
        {
          name: 'X',
          artist: 'Ed Sheeran'
        }
      ],
      columns: [ // for columnData prop
        {
          header: 'Name',
          name: 'name',
        },
        {
          header: 'Artist',
          name: 'artist'
        }
      ]
    }
  }
}
</script>

API Document

v1.0.5

5 years ago
  • Added prettier config / Applied prettier format
  • Added vue as a peer dependency
  • Added type definition for instance methods

v1.0.4

5 years ago

Chores

  • Update tui-grid version to ^3.5.0

v1.0.3

5 years ago

Chores

  • Update tui-grid version to ~3.3.1

v1.0.2

5 years ago

Chores

  • update vue/cli (Security vulnerability response)

v1.0.1

5 years ago

Features

  • 43a0a8d1c84fde2737cf5479b1989252afa14164 Fix: change bundle file name and set tui.grid to external