1.0.45 • Published 5 years ago

metawesome-datatable v1.0.45

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
5 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

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

6 years ago

1.0.38

6 years ago

1.0.37

6 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.33

6 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.12

6 years ago

1.0.13

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago