How to add widgets into the GWT Datagrid
I need to render the html table using GWT DataGrid.How can put the GWT
anchor widget datagrid column cell.I need to add a listener to the anchor.
The html prototype row:" < TR> < g:anhcor class="icon-button delete"
$GT TR> "
My current code is not working properly the style adding to the entire cell :
ButtonCell deletebutton = new ButtonCell();
Column<KeywordData, String> deleteColumn = new Column<KeywordData,
String>(deletebutton) {
@Override
public String getValue(KeywordData keyword) {
return "";
}
};
deleteColumn.setCellStyleNames("icon-button delete");
keywordsGrid.addColumn(deleteColumn,"Delete");
No comments:
Post a Comment