You need to sign in to do that
Don't have an account?
Juan García
Lightning datatable - edit column with double click
Hi,
I have a doubt creating a lightning datatable. Can I edit the columns doing double click ?
I only can edit the data clicking to the edit icon. In standard List View, we can edit the value doing double click anywhere in the column.
Thanks
I have a doubt creating a lightning datatable. Can I edit the columns doing double click ?
I only can edit the data clicking to the edit icon. In standard List View, we can edit the value doing double click anywhere in the column.
Thanks
As of today lightning:datatable does not allow start inline editing on "double click" of the cell. It only supports inline editing by:
Clicking the pencil icon that appears for an inline editable cell
- By pressing enter on the cell
- Below is the excerpt from the documentation:
Working with Inline Editing: When you make a column editable, a pencil icon appears when you hover over the cells in that column. Clicking the icon or pressing the Enter key triggers inline editing.Hope this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
All Answers
As of today lightning:datatable does not allow start inline editing on "double click" of the cell. It only supports inline editing by:
Clicking the pencil icon that appears for an inline editable cell
- By pressing enter on the cell
- Below is the excerpt from the documentation:
Working with Inline Editing: When you make a column editable, a pencil icon appears when you hover over the cells in that column. Clicking the icon or pressing the Enter key triggers inline editing.Hope this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
Ok, thank you. I will have this limitation in mind
Other question, and style works in datatable?
Regards,
Juan
Yes, it works.
May I suggest you please refer to below link which might help you further.
- https://developer.salesforce.com/docs/component-library/bundle/lightning:datatable/documentation
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra