cancel
Showing results for 
Search instead for 
Did you mean: 

Having an autofocus in a nuxeo-data-table-form

Ahmad_Ben_Maall
Star Contributor
Star Contributor

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 ACCEPTED ANSWER

Ahmad_Ben_Maall
Star Contributor
Star Contributor

As a first solution, I use javascript listeners to trigger events.

View answer in original post

1 REPLY 1

Ahmad_Ben_Maall
Star Contributor
Star Contributor

As a first solution, I use javascript listeners to trigger events.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.