File

core/common/service-registry.model.ts

Description

Defines a provider for additional device status buttons. TODO to be removed when DeviceStatusWidget is migrated to Angular

Index

Methods

Methods

canShowButton
canShowButton(device: IManagedObject)

Determines whether the button should be shown for a given device.

Parameters :
Name Type Optional Description
device IManagedObject No

The device for which to determine button visibility.

Returns : boolean

A boolean value indicating whether the button should be displayed.

getButtonInfo
getButtonInfo()

Provides the properties necessary to render the button.

Returns : literal type

An object containing the button's title, icon, label, and click action.

results matching ""

    No results matching ""