Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个DecoratedCellTable可以进行内联编辑的地方。但是当我点击我editbutton的CellTable. 仅当我单击要编辑的单元格时,该单元格才会呈现为<input>.
DecoratedCellTable
editbutton
CellTable
<input>
有没有办法通过单击 my 将所有可编辑单元格呈现为输入editbutton?
用cellTable.setEditable(true);它是行不通的。
cellTable.setEditable(true);
请参阅单元格是按列定义的,而不是按列中的条目定义的。
The basic idea of cell widgets is to make the widget light wieght by not creating the input elements for each entry in the column.
The basic idea of cell widgets is to make the widget light wieght by not creating the input elements for each entry in the column
因此,在任何时间点,一列中只能有一个输入元素可以处于活动状态,并且同一输入元素可用于整个列。
因此,不可能(据我所知)一次将所有可编辑单元格渲染为输入元素。