I need an editable datagrid on an application written with Element UI.
Actually, I've a table like the following:
<el-table :data="myData" stripe="stripe">
<el-table-column prop="col1" label="Col 1"></el-table-column>
<el-table-column prop="col2" label="Col 2"></el-table-column>
</el-table>
That's rendered in html like (simplifying):
<table class="el-table__body">
<td class="el-table_1_column_1">
<div class="cell">Val col 1</div>
</td>
<td class="el-table_1_column_1">
<div class="cell">Val col 1</div>
</td>
</table>
So, I'd like to append the attribute contenteditable="true" to the div with class="cell".
I tried to append the attribute to the el-table-column element, but it didn't works.
<el-table-column prop="position" label="Pos." contenteditable="true"></el-table-column>
Then, how could I make some el-table's cell editable?
Is the contenteditable attribute the right way? How can I use it?
Thanks.