Skip to content

Commit 51591b4

Browse files
committed
documentation, updated readme
1 parent 3e60a93 commit 51591b4

File tree

4 files changed

+79
-10
lines changed

4 files changed

+79
-10
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
vue-bootstrap-table is a sortable and searchable table, with Bootstrap styling, for Vue.js.
44

55

6-
[**[Demo](https://jbaysolutions.github.io/vue-bootstrap-table/examples/01-basic.html) | [Changelog](/CHANGELOG.md)**]
6+
### [Demo](https://jbaysolutions.github.io/vue-bootstrap-table/examples/01-basic.html)
77

88
<!--
99
## Table of Contents
@@ -37,14 +37,17 @@ TODO UPDATE CHANGELOG
3737

3838
## Installation
3939

40-
Install the vue-bootstrap-table [package](https://www.npmjs.org/package/vue-bootstrap-table) package using [npm](https://www.npmjs.com/):
40+
Install the vue-bootstrap-table [package](https://www.npmjs.org/package/vue-bootstrap-table2) package using [npm](https://www.npmjs.com/):
4141

42-
npm install vue-bootstrap-table
42+
npm install vue-bootstrap-table2
4343

4444

45-
## Usage
45+
Or import the js script on your html (use the files from the dist folder):
46+
47+
<script src="vue-bootstrap-table.js"></script>
48+
4649

47-
npm install vue-bootstrap-table
50+
## Usage
4851

4952
```javascript
5053

@@ -105,6 +108,52 @@ npm install vue-bootstrap-table
105108
</vue-bootstrap-table>
106109
````
107110

111+
## Props
112+
113+
```javascript
114+
115+
props: {
116+
/**
117+
* The column titles, required
118+
*/
119+
columns: {
120+
type: Array,
121+
required: true,
122+
},
123+
/**
124+
* The rows, an Array of objects
125+
*/
126+
values: {
127+
type: Array,
128+
required: true,
129+
},
130+
/**
131+
* Enable/disable table sorting, optional, default true
132+
*/
133+
sortable: {
134+
type: Boolean,
135+
required: false,
136+
default: true,
137+
},
138+
/**
139+
* Enable/disable input filter, optional, default false
140+
*/
141+
showFilter: {
142+
type: Boolean,
143+
required: false,
144+
default: false,
145+
},
146+
/**
147+
* Enable/disable column picker to show/hide table columns, optional, default false
148+
*/
149+
showColumnPicker: {
150+
type: Boolean,
151+
required: false,
152+
default: false,
153+
},
154+
},
155+
156+
```
108157

109158
## Contribute
110159

@@ -121,3 +170,10 @@ If you have a feature request, please add it as an issue or make a pull request.
121170
- [ ] Correct date sorting
122171
- [ ] Keyboard navigation
123172
- [ ] Editing
173+
174+
175+
## Changelog
176+
177+
### 0.1.1
178+
179+
* First version

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "vue-bootstrap-table",
3-
"version": "0.1.0",
2+
"name": "vue-bootstrap-table2",
3+
"version": "0.1.1",
44
"description": "A sortable and searchable vue table, as a Vue component, using bootstrap styling.",
55
"keywords": [
66
"table",
@@ -20,7 +20,7 @@
2020
},
2121
"repository": {
2222
"type": "git",
23-
"url": "https://github.com/jbaysolutions/vue-table.git"
23+
"url": "https://github.com/jbaysolutions/vue-bootstrap-table.git"
2424
},
2525
"author": "Gustavo Santos (JBay Solutions) <gustavo.santos@jbaysolutions.com> (http://www.jbaysolutions.com)",
2626
"dependencies": {

src/VueBootstrapTable.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,24 +114,39 @@
114114
name: "VueBootstrapTable",
115115
components: {},
116116
props: {
117+
/**
118+
* The column titles, required
119+
*/
117120
columns: {
118121
type: Array,
119122
required: true,
120123
},
124+
/**
125+
* The rows, an Array of objects
126+
*/
121127
values: {
122128
type: Array,
123129
required: true,
124130
},
131+
/**
132+
* Enable/disable table sorting, optional, default true
133+
*/
125134
sortable: {
126135
type: Boolean,
127136
required: false,
128137
default: true,
129138
},
139+
/**
140+
* Enable/disable input filter, optional, default false
141+
*/
130142
showFilter: {
131143
type: Boolean,
132144
required: false,
133145
default: false,
134146
},
147+
/**
148+
* Enable/disable column picker to show/hide table columns, optional, default false
149+
*/
135150
showColumnPicker: {
136151
type: Boolean,
137152
required: false,

0 commit comments

Comments
 (0)