I have this column definition in AgGrid, which creates a text editor when you press enter or double click. However, when you press enter from within edit mode, it exits edit mode. I don't want that behavior, I want it to create a new line. Maybe I can have CMD/OPT/CTRL+enter create the new line, I don't care, I just want to create a new line on enter of some sort.
I have tried using suppressKeyboardEvent but that prevents the enter from doing anything, instead of allowing a new line. Here is my basic column definition:
{
headerName: 'Foo',
field: 'foo',
editable: true,
filter: 'agSetColumnFilter',
wrapText: true,
autoHeight: true,
maxWidth: 400,
cellEditor: 'agLargeTextCellEditor',
}
Any ideas how I can accomplish this?
For example, Google Spreadsheets you press OPTION+enter or CMD+enter and it adds a new line. How can I do that with AgGrid?