Having an autofocus in a nuxeo-data-table-form
Hello, Either the following piece of code:
<nuxeo-data-table ... orderable="true" editable="true">
<nuxeo-data-table-column ...>
<template>
[[item]]
</template>
</nuxeo-data-table-column>
<nuxeo-data-table-form>
<template>
<nuxeo-input value="{{item}}" type="text"></nuxeo-input>
</template>
</nuxeo-data-table-form>
</nuxeo-data-table>
My goal is to have the focus on “nuxeo-input” while trying to add an entry to the table. I tried adding the “autofocus” attribute but it doesn't work. And I also want to know if there is a tip to validate “nuxeo-data-table-form” with the enter key.
Anyone know these tips please?
1 votes
1 answers
1320 views