0.1.3 • Published 5 years ago
simple-vue-datatable v0.1.3
simple-vue-datatable
A simple datatable component library created for Vue.JS.
Installation
npm install --save simple-vue-datatable
Usage
- In
main.js
import 'simple-vue-datatable
- From your component
data: () => {
data: {
tableData: [
{
"Column 1":"Col1Val1",
"Column 2":"Col1Val2",
"Column 3":"Col1Val2",
"Column 4":"Col1Val2",
"Column 5":"Col1Val2",
"Column 6":"Col1Val2",
"Column 7":"Col1Val2"
}
]
}
}
<simple-vue-datatable :data="data" />
Error messages along with code
- ERR_INAPPROPRIATE_KEYS: The sent data object has inappropriate number of keys as compared to the number of those that are required.
- ERR_TABLEDATA_DATA_TYPE: The 'tableData' entry the sent data object must be an Array.
- ERR_MISSING_KEY_IN_DATA_OBJECT: One or more mandatory keys were not found in the sent data object.
- ERROR_NO_TABLEDATA_SENT: The size of the 'tableData' array in the sent data object is empty.
Warning messages along with code
- WARNING_TOO_MANY_KEYS: The sent data object has more keys than expected. The extra keys will be ignored by default.
Keys to be avoided in the 'tableData' of the input
- __row_ID - This key is being used by this component internally for indexing purposes. Sending this key would lead to overriding the data sent.