Komal Kadam
Komal Kadam

Reputation: 21

How to add new line while editing multiline text in ag grid

I have my custom-cell-editor which is basically used to edit multi-line text. I am using prime ng text area while editing.

When I press enter my cell editing gets stopped and the editor gets closed, but I want a behavior where some key combination e.g alt+enter will give me a new line into that opened text-area box while editing.

I tried by some event in JavaScript, but still that editor is getting closed once I press alt+enter.

Is there any way to stop propagating other ag grid events when my key combination is alt+enter?

event.preventDefault is also not working.

Upvotes: 1

Views: 1067

Answers (1)

user18406297
user18406297

Reputation: 11

Use Shift + Enter for agLargeTextCellEditor if you are using ag-grid

Upvotes: 1

Related Questions