i have <table> rows containing form inputs.
i want simulate spreadsheet behavior, meaning when press key or down focus should change next/previous row's input.
the way i'm building attaching event handler in input this:
<td><input v-model="period.end" v-on:keydown="moveifcursorupordown"></td> the question how focus input inside different component inside moveifcursorupordown method.
i know of this.$refs.nameofinput.focus(), works focus inputs belonging component itself, don't know how use focus input inside different component.
Comments
Post a Comment