Skip to content

SiLinkDirective documentation

import { SiLinkDirective } from '@siemens/element-ng/link';

Input Properties

Name Type Default Description
actionParam
any

Parameter passed to the configured link action.

activeClass
string | undefined

CSS class applied while the link is active.

ariaCurrent
AriaCurrentType | undefined

Type for aria-current to set if routerLink is active.

exactMatch
boolean false

Whether router links must match the complete URL to be considered active.

siLinkDefaultTarget
string | undefined

Default target for links configured with an href but no explicit target.

Output Properties

Name Type Description
activeChange
boolean

Emits when the active state of the link changes.

Attributes and Methods

Name Type Default Description
(readonly)active
WritableSignal<boolean> false
onClick()
(event: any) => void
Parameters

Types Documentation

AriaCurrentType

'page' | 'step' | 'location' | 'date' | 'time' | 'true'
type alias

import type { Link } from '@siemens/element-ng/link';

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.


Except where otherwise noted, content on this site is licensed under MIT License.