field editable in bootstraptable with x-editable

0

I am using a bootstrap table from which I want to modify a record of the table, for this I am using a complement called X-Editable ( link ) but the editable field is an input and I need it to be a text because I have to introduce line breaks in the text.

Has anyone used it that could suggest how to do it?

in the code, I just added a property to the fields in the table that is (data-editable = true):

<th data-field="Comments" data-editable="true" data-sortable="true" >Comments</th>
    
asked by Richard 11.09.2018 в 01:49
source

1 answer

0

According to the documentation, you have to add the attribute data-type and specify textarea . It would stay like this:

<th data-field="Comments" data-editable="true" data-type="textarea" data-sortable="true" >Comments</th>
    
answered by 11.09.2018 в 01:54