Themes

Layout/Components/es-layout-link
es-layout-link

A link for the sidebar, sidebar-dropdown, and header-dropdown.

Props

Name
Description
Type
Default
alertLevel

Display a dot on the icon, to attract attention to the link.

error
or
okay
or
warning
or
undefined
count

Display a counter in place of the icon.

number
or
undefined
disabled

If the link should be disabled.

boolean
false
external

If the link is external

boolean
or
undefined
forceRefresh

If the Link should break out of the router, and force a page load

boolean
or
undefined
icon

Display an icon on the left.

[namespace: string
or
symbol, name: string]
or
string
or
undefined
level

Apply an indent to the left of the link, for basic nesting.

number
or
undefined
matchExact

Use exact url matching for active.

boolean
or
undefined
matchStrict

Use strict url matching for active.

boolean
or
undefined
matchUrl

When to display as active. Uses the url by default.

string
or
undefined
priority

When deciding the active child, if multiple are active, the highest priority wins.

number
0
target

Target for link (eg: target="_blank")

string
or
undefined
url

Where to link to.

string
or
undefined

Methods

Name
Signature
Description
isActive
isActive() => Promise<boolean>

If the link is currently active

Parts

Name
Description
counter

The counter element

link

The link element.