Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How did you get the rowData from the custom-actions component #38

Open
JakePerillano opened this issue Jan 13, 2017 · 4 comments
Labels

Comments

@JakePerillano
Copy link

JakePerillano commented Jan 13, 2017

Hi @ratiw

Again thanks for the wonderful vuetable plugin.

I am trying to map your code and adding some functionality, like on your custom action component, i want to pass also the rowIndex on click events, so I have to map how you are getting the rowData you passing to this events.

Hopefully you could enlighten me.

Thanks!

@JakePerillano JakePerillano changed the title [Question] How did you get the rowDate from the custom-actions component [Question] How did you get the rowData from the custom-actions component Jan 13, 2017
@ratiw
Copy link
Owner

ratiw commented Jan 13, 2017

@JakePerillano As of v1. 0.3, rowIndex is already get passed to the component. Check again which version of Vuetable you are using.

@JakePerillano
Copy link
Author

Thanks for replying.

I am using version Vuetables 2.. I am getting undefined error when trying to alert the rowIndex value

'<button class="ui green button" @click="update(rowData, rowIndex)"><i class="check icon"></i></button>'

update: function(data, index) { alert(index); this.onUpdate = false; },

@JakePerillano
Copy link
Author

Got it, just need to add rowIndex on my props.

BTW any suggestion on how can I make an inline edit function? just need a action on button click fields on that row will be editable. 'textbox or dropdown menu' :)

Thanks @ratiw and amazing job on vuetable.

@ratiw
Copy link
Owner

ratiw commented Jan 13, 2017

A good inline edit function is quite complex. Maybe you can look into vue-editable.js. I play with it a long time ago, but probably the most simple, easy to understand, and shouldn't be hard to extend.

@ratiw ratiw added the question label Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants