File

src/ui/viewer/enabled-state.directive.ts

Description

Used internally by the SmartViewerComponent to determine when inputs should be disabled/enabled in accordance with the viewer's attached datasource's state. Usage: <input [enabledState]="add,update" ... /> will only enable the input when the data source is adding a record. Possible values: add, update, idle, reading, error.

Implements

OnChanges OnDestroy

Metadata

Index

Inputs
Accessors

Constructor

constructor(dsRegistry: DataSourceRegistry, helperService: SmartViewerHelperService<SmartViewerComponent>, widgetFactory: WidgetFacadeFactory, zone: NgZone)
Parameters :
Name Type Optional
dsRegistry DataSourceRegistry No
helperService SmartViewerHelperService<SmartViewerComponent> No
widgetFactory WidgetFacadeFactory No
zone NgZone No

Inputs

dataSourceStateMonitor
Type : string
enabledState
Type : string

Sets the enabled states based on the input string

name
Type : string

Accessors

enabledState
setenabledState(value: string)

Sets the enabled states based on the input string

Parameters :
Name Type Optional Description
value string No

Comma-separated list of enabled states

Returns : void

results matching ""

    No results matching ""