Comments (8)
See #93.
from vue-tables.
Update: This is caused by id being UUID instead of integer. Is this something that would be easy to fix?
from vue-tables.
Wrap the parameter with quotes
deleteClassified("{id}")
from vue-tables.
Now I just receive the string "{id}" as a parameter to my method instead of the actual UUID value.
I've tried different ways (single quotes, escaping the quote, etc.) and still could not make this work.
Have you tried your solution? If so, could you provide a working jsfiddle please?
Wish I could be more helpful..
from vue-tables.
Nevermind, I got it to work outsite my main project...
from vue-tables.
It works for static records passed directly as an array in data
attribute of the Vue instance, but not when loading the same data from a REST api in the ready
function.
from vue-tables.
Add v-if
to the component so it won't compile until the data is returned from the API. Something like:
<v-client-table v-if='loaded'></v-client-table>
where loaded
will be set to true in the callback handling the returned data.
Alternatively, you can call this.$compile(this.$el)
to compile the templates when the data is ready.
from vue-tables.
I did that but for some reason it doesn't work for me.
I added the v-if
to only compile when the data is loaded but i still get an undefined
when i try to use it with a button from my table.
My edit button:
<button type='button' class='btn btn-warning' href='javascript:void(0);' @click='$parent.Edit({viewer})'><i class='fa fa-pencil-square-o' aria-hidden='true'></i></button>
(Note: If i use an integer for example the id
instead of viewer
which is a string everything works and i get the id in the alert function.)
My Edit Function is just:
Edit: function (viewer) { alert(viewer); }
from vue-tables.
Related Issues (20)
- How to disable pagination component HOT 1
- Is there a way to freeze columns and make other columns scrollable? HOT 1
- Is there a way to center specific columns HOT 1
- click event on rows
- server side implementation HOT 1
- Q: Custom columns should not be show if not defined in columns attribute? HOT 1
- Laravel Implementation HOT 1
- Feature request - Column grouping
- Q : "pagination-info-template" no has data๏ผ HOT 1
- Use if-else to prevent data.json error
- Date format from server HOT 2
- Pagination from server HOT 1
- Unknown custom element: <v-server-table> - did you register the component correctly? HOT 4
- dateformate and server table HOT 1
- [Question] How to display a row index/running number column?
- V-Server-Table (vuetables2) HOT 1
- Display json filte HOT 1
- How to implemen server-side in Lumen? HOT 2
- DateRangepicker not showing HOT 1
- Missing ref owner context HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-tables.