Dynamic Column Row Cell Template
Dynamic Column Row Cell Template
fsky
Posts: 1Questions: 1Answers: 0
Hi,
I am new to Datatables/Editor and was wondering if the plug-ins would be able to help me and generate a complex inline data entry table.
The column cell template may be different for each row.
Something similar to the output below to explain better.
<table>
<tr>
<th>Name</th>
<th>Option #1</th>
<th>Option #2</th>
</tr>
<tr>
<td>Component zzz</td>
<td><input type="text" /></td>
<td>
<select>
<option>black</option>
<option selected>white</option>
</select>
</td>
</tr>
<tr>
<td>Component yyy</td>
<td>
<input type="checkbox" />
</td>
<td></td>
</tr>
<tr>
<td>Component xxx</td>
<td>
<select>
<option>small</option>
<option selected="selected">medium</option>
</select>
</td>
<td><input type="text" /></td>
</tr>
</table>
Thanks
This discussion has been closed.
Answers
Editor creates its own form elements. I'm afraid it cannot reuse input elements that you insert into the table.
Allan