@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
28 lines (25 loc) • 1.04 kB
TypeScript
import { WidgetControls } from '@c8y/ngx-components/global-context';
/**
* Produces the baseline alarm list controls preset mirroring the default
* widget behaviour.
*
* @returns Fresh baseline controls instance for the alarm list widget.
*/
declare function createAlarmListControls(): WidgetControls;
/**
* Produces the legacy alarm controls preset shared by the "recent" and
* "critical" alarm widgets. It hides the refresh interval and exposes the
* manual refresh button inline.
*
* @returns Alarm controls tailored for legacy alarm widgets.
*/
declare function createLegacyAlarmControls(): WidgetControls;
/**
* Resolves the appropriate controls preset based on the widget identifier.
*
* @param widgetId Optional widget id coming from the widget config/definition.
* @returns Fully materialised controls for the widget.
*/
declare function resolveAlarmControls(widgetId?: string): WidgetControls;
export { createAlarmListControls, createLegacyAlarmControls, resolveAlarmControls };
//# sourceMappingURL=index.d.ts.map