Themes

Layout/Components/es-layout-button
es-layout-button

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

Props

Name
Description
Type
Default
active

If the button should display as active

boolean
false
alertLevel

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

error
or
okay
or
warning
or
undefined
closeOnClick

If the parent popup should close when clicked.

boolean
false
count

Display a counter in place of the icon.

number
or
undefined
disabled

If the button should be disabled.

boolean
false
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 button, for basic nesting.

number
or
undefined
priority

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

number
0

Events

Event
Detail
Description
requestClose
any

Triggers the parent popup to close.

Methods

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

If the button is currently active

Parts

Name
Description
button

The button element.