Support #14899
openwt Widget Gallery How to get/copy the content of a cell
0%
Description
I have tested with https://www.webtoolkit.eu/widgets/trees-tables/mvc-item-models and https://www.webtoolkit.eu/widgets/trees-tables/mvc-item-models
But in all given examples (tables) I was not able to copy the content of a cell.
What must be changed so the behaviour is the same as for https://www.webtoolkit.eu/widgets/trees-tables/ ?
Files
RM Updated by Romain Mardulyn 19 days ago
Hi robs,
You can just call tableView->setSelectable(true);
RJ Updated by robs j 18 days ago
- File example-widgetgallery.png example-widgetgallery.png added
- File example-widgetgallery-cell-not-at-beginning-of-table.png example-widgetgallery-cell-not-at-beginning-of-table.png added
Thanks for the given advice.
But the result is not satisfying with firefox or microsoft edge.
I have to point outside the table and then start moving with left mouse down over the cells of a table.
But I can't select the content of a single cell inside a table.
I adpated the example widgetgallery of wt.4.12.6
in file examples\widgetgallery\examples\SmallTableView.cpp
in line 19 added your suggestion: tableView->setSelectable(true); // https://redmine.emweb.be/issues/14899
RM Updated by Romain Mardulyn 17 days ago ยท Edited
There is a bug in Wt 4.12.6 that made setSelectable() always prevent selection, regardless of the parameter that was passed. This was fixed in Wt 4.13.0.