Link
Description
A hyperlink component (anchor element) with optional underline control, icons and target configuration. Wraps either a string or any IComponent as the link's content; supports opening in a new window, configuring window features and toggling the underline.
Usage
API reference
public class Link : IComponent, ITextFormatingA hyperlink component (anchor element) with optional underline control, icons and target configuration.
- Namespace
- Tesserae
- Implements
- IComponent, ITextFormating
Constructors
| Name | Description |
|---|---|
| Link | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| Target | Gets or sets the link target of the component. |
| URL | Gets or sets the u r l. |
| Size | Gets or sets the size of the component. |
| Weight | Gets or sets the font weight of the component. |
| TextAlign | Gets or sets the text alignment of the component. |
public string Target { get ; set ; }Gets or sets the link target of the component.
public TextWeight Weight { get ; set ; }Gets or sets the font weight of the component.
Methods
| Name | Description |
|---|---|
| Render | Renders the component's root HTML element. |
| OpenInNewTab | Opens the in new tab. |
| AsWindow | Returns the component's state as a(n) window. |
| OnClick | Registers a callback invoked when the click event fires. |
public Link AsWindow(string features = null)Returns the component's state as a(n) window.