Application Switcher Button

Applicaiton Switcher Button is used to switch between OLYSENSE applications.

This variant is used within the Application Switcher.

This variant is larger and should be used inline on the OLYSENS landing page.

import '@ods/components/web.application-switcher-button';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
(default)The button's label.
app-iconA presentational application icon or similar element.

Properties

Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.

Property/AttributeReflectsTypeDefault
name
string''
disabled
booleanfalse
value
string''
href
string''
target
'_blank' | '_parent' | '_self' | '_top'
rel
string'noreferrer noopener'
variant
'app-switcher' | 'landing''app-switcher'

Events

React EventDescriptionEvent Detail
ods-blurEmitted when the button loses focus.--
ods-focusEmitted when the button gains focus.--

Methods

NameDescriptionArguments
click()Simulates a click on the button.--
focus()Sets focus on the button.--
blur()Removes focus from the button.--

Parts

NameDescription
baseThe component's base wrapper.
app-iconThe wrappr container for the app switcher button.
labelThe label for the app switcher button

Search