Allow user to choose which columns to show, for Vue.js users grid
This commit is contained in:
parent
b7319fd152
commit
f05d50bce3
|
@ -35,9 +35,6 @@
|
||||||
|
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
## TODO: just, ugh.
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<div id="vue-app">
|
<div id="vue-app">
|
||||||
## TODO: need to make endpoint a bit more configurable somehow
|
## TODO: need to make endpoint a bit more configurable somehow
|
||||||
<v-server-table name="users" url="/api/users" :columns="columns" :options="options">
|
<v-server-table name="users" url="/api/users" :columns="columns" :options="options">
|
||||||
|
@ -92,6 +89,7 @@ var app = new Vue({
|
||||||
'active'
|
'active'
|
||||||
],
|
],
|
||||||
options: {
|
options: {
|
||||||
|
columnsDropdown: true,
|
||||||
filterable: false,
|
filterable: false,
|
||||||
headings: {
|
headings: {
|
||||||
person_display_name: "Person"
|
person_display_name: "Person"
|
||||||
|
|
Loading…
Reference in a new issue