Hi
It seems that Table & Table.Column API does not allow to set “link” attribute of a column programmatically. Am I right ? If yes, is there a workaround ?
Regards
Michael
Hi
It seems that Table & Table.Column API does not allow to set “link” attribute of a column programmatically. Am I right ? If yes, is there a workaround ?
Regards
Michael
Hi,
In fact, by providing link='true'
in XML, we tell a table that a cell click listener have to be created and the link styles have to be assigned.
Programmatically you can do the following:
ordersTable.setClickListener("customer", (item, columnId) -> {
openEditor(item, WindowManager.OpenType.DIALOG);
});
ordersTable.addStyleProvider((entity, property) ->
"customer".equals(property)
? "c-table-cell-link"
: null);
Regards,
Gleb
Great, thank you Gleb