vue-cuba-entity-list
v0.1.1
Published
Vue mixin for cuba entities list
Downloads
3
Readme
Install:
npm install [email protected] --save
How to use:
<template>
<table border="1">
<tr>
<th>Id</th>
<th>Login</th>
<th>Name</th>
</tr>
<tr v-for="entity in entities">
<td>{{entity.id}}</td>
<td>{{entity.login}}</td>
<td>{{entity.name}}</td>
</tr>
</table>
</template>
<script>
import CubaEntityListMixin from 'vue-cuba-entity-list';
export default {
data: () => ({
entityName: 'sec$User',
entityFilter: {view: '_local', sort: 'login'},
}),
mixins:[CubaEntityListMixin]
}
</script>