|
Re: Button in TableColumn [message #1801356 is a reply to message #1801337] |
Thu, 17 January 2019 11:59 |
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02893 seconds