kor TürkçeGitHub

Link

Opens an address or starts an action from text.

kor/ui/LinkSource

When to use

  • Link to a related record or an external page.

Examples

Address and action

Loading the example

<k:Stack direction="row" gap="20">
	<k:Link text="Documentation" href="https://korui5.abapnews.com" target="_blank"/>
	<k:Link text="Show history" icon="clock" press=".onPress"/>
</k:Stack>

API

Properties

NameTypeDefaultDescription
textstringText
hrefstringAddress. Only http, https, mailto, tel and relative addresses are opened
targetstringUse _blank to open a new tab
iconstringLeading icon
enabledbooleantrueWhether the control is enabled

Events

NameTypeDescription
pressThe link was pressed. preventDefault stops navigation

Related

ButtonBreadcrumbs