Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.

Commit dace913

Browse files
author
DongWoo Kim
committed
docs: fix addOn to addon
1 parent 46abaad commit dace913

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ const MyComponent = () => (
126126

127127
### Instance Methods
128128

129-
For using [instance methods of TOAST UI Grid](http://nhnent.github.io/tui.grid/latest/Grid#activateFocus), first thing to do is creating Refs of wrapper component using [`createRef()`](https://reactjs.org/docs/refs-and-the-dom.html#creating-refs). But the wrapper component does not provide a way to call instance methods of TOAST UI Grid directly. Instead, you can call `getGridInstance()` method of the wrapper component to get the instance, and call the methods on it.
129+
For using [instance methods of TOAST UI Grid](http://nhnent.github.io/tui.grid/latest/Grid#activateFocus), first thing to do is creating Refs of wrapper component using [`createRef()`](https://reactjs.org/docs/refs-and-the-dom.html#creating-refs). But the wrapper component does not provide a way to call instance methods of TOAST UI Grid directly. Instead, you can call `getInstance()` method of the wrapper component to get the instance, and call the methods on it.
130130

131131
```js
132132
class MyComponent extends React.Component {
133133
gridRef = React.createRef();
134134

135135
handleAppendRow = () => {
136-
this.gridRef.current.getGridInstance().appendRow({});
136+
this.gridRef.current.getInstance().appendRow({});
137137
}
138138

139139
render() {
@@ -211,7 +211,7 @@ class MyComponent extends React.Component {
211211
```
212212

213213
### Addons
214-
TOAST UI Grid uses the **AddOn** to extend functionality, which can be setup with the `addOn` prop. The `addOn` prop recieves an object which conatins the name of the addon as a key, and the option object as a value. For example, if you want to use the [Net addon](https://github.com/nhnent/tui.grid/blob/production/docs/binding-to-remote-data.md#net-add-on) you can set it up like the example below.
214+
TOAST UI Grid uses the **Addon** to extend functionality, which can be setup with the `addon` prop. The `addon` prop recieves an object which conatins the name of the addon as a key, and the option object as a value. For example, if you want to use the [Net addon](https://github.com/nhnent/tui.grid/blob/production/docs/binding-to-remote-data.md#net-add-on) you can set it up like the example below.
215215

216216
```js
217217
const columns = [/* ... */];
@@ -225,7 +225,7 @@ const netOptions = {
225225
const MyComponent = () => (
226226
<Grid
227227
columns={columns}
228-
addOn={{Net: netOptions}}
228+
addon={{Net: netOptions}}
229229
/>
230230
);
231231
```

0 commit comments

Comments
 (0)