1.0.4 • Published 4 years ago

table-vue-component v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Table Vue Component

đź–ĄComponent Demonstration

Description

Table Vue Component is a component with which you can quickly build reactive tables.

Installation

First step

npm install table-vue-component

Second step

Local registration

<script>
  import Table from 'table-vue-component/Table.vue';
  export default: {
    components: {
      Table
    }
  }
</script>

Props

PropTypeDefaultDescription
columnsArray[{name: String, key: String}] An array where each object is considered a column.Object Values - name: column name, key: key to the column data value.
dataArray An array with the data you want to show in the table.
removalFunctionFunctionundefinedThe function by which the deletion of selected data will be executed.
typeDataDeleteStringupdateDataordeleteDataupdateDataUsed in removalFunction(typeDataDelete) as the only parameter.updateData - returns an updated data array with already deleted data.deleteData - returns an array of data to be deleted.
abilitySelectBooleantruetrue - allows you to choose which columns will be displayed.false - disables this feature.
abilitySortBooleantruetrue - makes it possible to sort data in a table.false - disables this feature.
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago