This repository has been archived by the owner on Oct 24, 2019. It is now read-only.
Releases: nhn/toast-ui.vue-grid
Releases Β· nhn/toast-ui.vue-grid
v2.1.0
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
v2.0.0
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 thedata
, declareprops
in thecreated
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
- Added prettier config / Applied prettier format
- Added vue as a peer dependency
- Added type definition for instance methods
v.1.0.4
Chores
- Update
tui-grid
version to^3.5.0
v1.0.3
Chores
- Update
tui-grid
version to~3.3.1
v.1.0.2
Chores
- update vue/cli (Security vulnerability response)