GemLink
The link element is used to create a hyperlink to another web page or to a specific section within a page.
Usage Example
/* (c) https://github.com/MontiCore/monticore */
package example_basic;
import mc.fenix.basic.GemLink;
import common.ExamplePage;
page GemLinkExample() {
@ExamplePage(
component = @GemLink(
url = "https://www.google.com/",
text = "click here for Google"
),
basePath = "example_basic",
componentName = "GemLinkExample"
);
}
GUI Model
component GemLink(
String url = "",
String text = ""
)
| Name | Type | Description | Default value |
|---|---|---|---|
url |
String |
URL the hyperlink redirects to. | "" |
text |
String |
Text of the link. | "" |