Skip to content

Commit 8135ca3

Browse files
committed
added components import example to readme
1 parent e354eba commit 8135ca3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,18 @@ Import the library
7171
import VueGridLayout from 'vue-grid-layout';
7272
```
7373

74+
Add to other Vue components
75+
76+
```javascript
77+
export default {
78+
components: {
79+
GridLayout: VueGridLayout.GridLayout,
80+
GridItem: VueGridLayout.GridItem
81+
},
82+
// ... data, methods, mounted (), etc.
83+
}
7484

85+
```
7586

7687
#### browser
7788

0 commit comments

Comments
 (0)