Implement A DataTable using the repository.
<v-table
ref="tasks"
route="tasks/table">
<template slot="caption">
<i class="fa fa-tasks"></i> Tasks
/** START EXAMPLES **/ | |
<?php | |
/** | |
* Split Payment | |
* @param \Illuminate\Http\Request $request | |
* @return \Illuminate\Http\Response | |
* @throws \Exception |
<script> | |
/** | |
* @property validator | |
**/ | |
import Ace from "ace-builds/src-noconflict/ace"; | |
import "ace-builds/webpack-resolver"; | |
export default { | |
props: { | |
value: { |
## Usage: | |
``` | |
<v-table | |
ref="tasks" | |
route="api/tasks/table"> | |
<template slot="caption"> | |
<i class="fa fa-tasks"></i> Tasks | |
</template> | |
<template slot="thead" slot-scope="table"> |
<script> | |
/** | |
* @property validator | |
**/ | |
export default { | |
name: "Control", | |
props: { | |
field: { | |
type: String, | |
}, |
<script> | |
import {Validator} from 'laravel-micro.js' | |
export default { | |
name: "Form", | |
props:{ | |
route: { | |
type: String, | |
required: true, | |
}, | |
method: { |
<script> | |
import {mapGetters, mapState, mapMutations} from 'vuex' | |
export default { | |
name: "Base", | |
computed: { | |
...mapGetters('menus', { | |
leftItems: 'left', | |
rightItems: 'right', | |
}), | |
...mapState('menus', { |
<?php | |
/** | |
* HasOne Affiliate Relationship | |
* @return \Illuminate\Database\Eloquent\Relations\hasOne | |
*/ | |
function affiliate(){ | |
return $this->hasOne(Affiliate::class, 'user_id','id'); | |
} |
<script> | |
import dragDrop from 'drag-drop' | |
import {HasLoadingState, HasErrors} from '../mixins' | |
export default { | |
mixins: [ | |
HasLoadingState, | |
HasErrors, | |
], | |
data() { |