1.0.45 • Published 6 years ago

metawesome-datatable v1.0.45

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
6 years ago

metawesome-datatable

pipeline status coverage report

Datatable component with pagination and filters to be used with Meta Crud.

Installation

Via NPM:

$ npm install --save metawesome-datatable

Usage/Example

Just import it and use it as a directive:

<template>
  <div id="app">
    <datatable-panel :per-page="30" url="/api/fornecedores" :fields="fields" :sortField="fields[6]" :checkbox="'pe_cdsenior'" no-data-template="Nenhum registro encontrado." pagination-info-template="Mostrando {from} até {to} de {total}" ref="datatable"></datatable-panel>
  </div>
</template>

<script>
import DatatablePanel from 'metawesome-datatable'

export default {
  name: 'App',
  components: {
    DatatablePanel,
  },
  data() {
    return {
      fields: [
        { name: 'pe_cdsenior', sortField: 'pe_cdsenior', title: 'Código' },
        { name: 'pe_nome', sortField: 'pe_nome', title: 'Nome/R. Social' },
        { name: 'pe_razsoc', sortField: 'pe_razsoc', title: 'Fantasia' },
        { name: 'pe_tppessoa', sortField: 'pe_tppessoa', title: 'Tipo' },
        { name: 'pe_cpfcnpj', sortField: 'pe_cpfcnpj', title: 'CPF/CNPJ' },
        { name: 'status', sortField: 'status', title: 'Status' },
        { name: '__component:custom-ver-xml-envio', title: 'XML Envio' },
        { name: '__component:custom-ver-xml-retorno', title: 'XML Retorno' },
      ]
    };
},

}
</script>

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:8080
$ npm run dev

# build for production with minification
$ npm run build
1.0.45

6 years ago

1.0.44

6 years ago

1.0.43

6 years ago

1.0.42

6 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.12

7 years ago

1.0.13

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago