This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.5.8 Bugfix, corrected issue with reloading the table
- Loading branch information
1 parent
c11f6f5
commit 10e629d
Showing
7 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "laravel-vue-datatable", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Vue.js datatable made with Laravel and Bootstrap in mind", | ||
"author": "James Dordoy <[email protected]>", | ||
"homepage": "https://jamesdordoy.github.io/laravel-vue-datatable/", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,84 @@ | ||
<template> | ||
<div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<h2 class="markdown-header">Reloading the Datatable</h2> | ||
<div class="col-md-8"> | ||
<h2 class="markdown-header"> | ||
Reloading the Datatable | ||
</h2> | ||
</div> | ||
<div class="col-md-4 relative"> | ||
<div class="show-code-inline"> | ||
<label>Show Example Code</label> | ||
<vue-switch></vue-switch> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-md-12 mb-2"> | ||
<button class="btn btn-primary" @click="reloadTable"> | ||
Reload Table | ||
</button> | ||
</div> | ||
<div class="col-md-12"> | ||
<reload-the-table-markdown> | ||
</reload-the-table-markdown> | ||
<pre v-highlightjs v-show="code"> | ||
<reload-the-table-markdown> | ||
</reload-the-table-markdown> | ||
</pre> | ||
<data-table | ||
ref="reloadingTheTable" | ||
v-show="!code" | ||
:url="url" | ||
:columns="columns"> | ||
</data-table> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import CodeExample from '../../mixins/CodeExample'; | ||
import VueSwitch from '../../components/generic/Switch'; | ||
import ReloadTheTableMarkdown from '../../markdown/examples/reloading-the-table.md'; | ||
export default { | ||
name: 'Reloading-The-Datatable', | ||
components: { | ||
// eslint-disable-next-line | ||
VueSwitch, | ||
// eslint-disable-next-line | ||
ReloadTheTableMarkdown, | ||
}, | ||
mixins: [CodeExample], | ||
data() { | ||
return { | ||
url: process.env.VUE_APP_ELOQUENT_URL, | ||
columns: [ | ||
{ | ||
label: 'ID', | ||
name: 'id', | ||
orderable: true, | ||
width: 20, | ||
}, | ||
{ | ||
label: 'Name', | ||
name: 'name', | ||
orderable: true, | ||
width: 40, | ||
}, | ||
{ | ||
label: 'Email', | ||
name: 'email', | ||
orderable: true, | ||
width: 40, | ||
}, | ||
] | ||
} | ||
}, | ||
methods: { | ||
reloadTable() { | ||
this.$refs.reloadingTheTable.getData() | ||
} | ||
} | ||
} | ||
</script> |