1.0.45 • Published 7 years ago
metawesome-datatable v1.0.45
metawesome-datatable
Datatable component with pagination and filters to be used with Meta Crud.
Installation
Via NPM:
$ npm install --save metawesome-datatableUsage/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 build1.0.45
7 years ago
1.0.44
7 years ago
1.0.43
7 years ago
1.0.42
7 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
8 years ago
1.0.23
8 years ago
1.0.22
8 years ago
1.0.21
8 years ago
1.0.20
8 years ago
1.0.19
8 years ago
1.0.18
8 years ago
1.0.17
8 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.12
8 years ago
1.0.13
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago