Skip to content

Instantly share code, notes, and snippets.

@bmadigan
Created June 15, 2016 17:22
Show Gist options
  • Save bmadigan/7c623adb9344d3f730be63e7344fb507 to your computer and use it in GitHub Desktop.
Save bmadigan/7c623adb9344d3f730be63e7344fb507 to your computer and use it in GitHub Desktop.
Sample Inline Save VueJS
<tr v-for="shipment in gridData" id="tr-field-{{ shipment.id }}">
<td style="display:none;">
<input type="hidden" v-model="shipForm[$index].id" value="{{ shipment.id }}">
</td>
<td>
<input
@keyup.enter="saveField(shipForm[$index])"
@keyup.tab="saveField(shipForm[$index])"
type="text"
v-model="shipForm[$index].shipment_number"
value="{{ shipment.shipment_number }}"
class="form-control" style="width:90px;">
</td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment