textarea in datatable

Is there way to configure a datatable column as textarea instead of text(single line) as it appear to be default? I am trying template, but it looks a bit weird.

I think the best solution should be a css text-align justify

Check the next snippet
http://webix.com/snippet/37b66cea

Thanks. Just by using rowLineHeight property was enough to get what I wanted. (lines breaking into the cell). :slight_smile:

Sorry but work the same as using template. Please, let me put my need in other words: I want the text in cell appears completely to users, without being hided by adjacent column. I will provide necessary column height so maximum text size will be visible without need of any user input. I think the best solution should be a css text-align justify for the specific cell. But it is not working :(.

The most proper way is to use the Webix textarea as a popup editor as provided here.

But you can create a custom editor, for example:
http://webix.com/snippet/90803972

After pressing the button “Enter” completes editing. How to create a new paragraph?

New paragraph create a response to a keys:

onKeyPress:function(code, e){
if (code == 13){
fff();
}
}
an error occurs and the cursor moves to a new line)))
But!

  1. How to change the row height after each new line?
  2. In rows paragraphs not displayed, everything is continuous text

Example show that the content varies, but is displayed without line breaks

http://webix.com/snippet/6c4351dd

You can disable default enter key handler by using

webix.UIManager.removeHotKey("enter");

http://webix.com/snippet/40935543

Спасибо, Максим!

А как быть с отрисовкой переноса строки в ячейке?

А Ваш прием отключит вообще реакцию на enter или только для определенного элемента?

Отключит для всего

Если надо можно потом включить свой обработчик для отдельных вью ( webix.UIManager.addHotKey(“enter”, handler, view); )

Еще как вариант можно блокировать onkey события непосредственно на textarea редактора, тогда глобальные хоткеи о них не узнают, и никакой реакции не будет