Comments (2)
You can use this method:
Add attribute in components/DataTable.vue line 90
:data-id="row.item.id"
full line
<b-btn size="sm" v-for="(button, key) in _.get(actions, 'addon')" :key="key" v-bind="button" :data-id="row.item.id">{{button.label}}</b-btn>
Add onclick in config.js
"_actions": {
"addon": {
"button": {
"label": "Approve",
"onclick": "alert('Approved ' + this.dataset.id)"
}
}
}
from rest-admin.
Thank You. It is working! Save my day :)
from rest-admin.
Related Issues (20)
- npm run serve error HOT 3
- Build for production error: Unexpected token: name (code) [./node_modules/vue-snotify/vue-snotify.esm.js:104 HOT 3
- Table component HOT 4
- Missing Peer Dependency after last commit (jquery and ajv) HOT 1
- v-for index as key on <transition-group> children HOT 1
- _actions addon tag vs Envelope Improve HOT 3
- ID naming strategy HOT 1
- CustomTable Concepts HOT 2
- Is it possible to configure to use with WordPress rest api HOT 4
- Vuex-router-sync question HOT 2
- 已经没有event-stream和[email protected]库了,其他版本好像还代替不了,如何解决?
- Layout Feature from configs HOT 1
- Clickable home card (statics) HOT 1
- What is the license for this project? HOT 1
- SSR - Nuxt.JS HOT 2
- 数据存储在那? HOT 1
- hello HOT 2
- 列表数据绑定报错
- inline images don't work in grids for a long time. Any guess how can I fix this?
- Reordering in models
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 rest-admin.