|
Re: Button in TableColumn [message #1801356 is a reply to message #1801337] |
Thu, 17 January 2019 06:59   |
Eclipse User |
|
|
|
Hi,
using app links as suggested in the other post probably still is the easiest way. If you want the links to look like buttons, you could use the button css class. And you need to remove the text-decoration: underline, otherwise the text in your buttons would be underlined...
Unfortunately, adding a css class to the app link does not seem to be supported, so you need to create the app link by yourself. Something like that:
HTML.span("text").addAttribute("data-ref", "ref").cssClass("app-link button"); // (Instead of using HTML.appLink("ref", "text")
In order to remove the text-decoration, you need to use a custom css class. Either add that new class to the list of css classes set by cssClass(), or include the button class in your new class as LESS mixin.
HTML.span("text").addAttribute("data-ref", "ref").cssClass("app-link app-link-button");
.app-link-button {
.button();
text-decoration: none;
}
Important: The class app-link needs to be a separate class on the link, otherwise the handler won't be attached.
|
|
|
|
|
|
Re: Button in TableColumn [message #1871274 is a reply to message #1871259] |
Thu, 19 September 2024 03:38  |
Eclipse User |
|
|
|
Hi,
you can find the callback function for the app link on the table, not on the column: AbstractTable#execAppLinkAction(String ref). There you get the reference to the clicked app-link as parameter. Just create unique references and use them for the data-ref attribute. You can use the HTML-Builder to do so: HTML.appLink(ref, text).
|
|
|
Powered by
FUDForum. Page generated in 0.05831 seconds