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

How to insert row object in compile template #36

Closed
clevonnoel opened this issue Apr 21, 2016 · 2 comments
Closed

How to insert row object in compile template #36

clevonnoel opened this issue Apr 21, 2016 · 2 comments
Labels

Comments

@clevonnoel
Copy link

I do i go about getting the row data in compileTemplate.

I am trying to do:
<button class="dropdown-item" @click.prevent="$parent.showEditModal(row)"><i class="fa fa-trash"></i> Delete</button>

@clevonnoel clevonnoel changed the title How to row data in compile template How to insert row data in compile template Apr 21, 2016
@clevonnoel clevonnoel changed the title How to insert row data in compile template How to insert row object in compile template Apr 21, 2016
@matfish2
Copy link
Owner

Since templates are NOT compiled inside the v-for loop you cannot pass data by reference. Instead, pass an identifier, which you can then use to fetch the relevant data. See the pseudo-delete functionality in the demo.
If you want to display a modal I would recommend client side routing, using vue-router

@clevonnoel
Copy link
Author

Thanks much.

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