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

AfterViewInit

Example

Metadata

Selector [enabledState]

Index

Inputs
Accessors

Constructor

constructor(element: ElementRef, dsRegistry: DataSourceRegistry, injector: Injector, helperService: SmartViewerHelperService, zone: NgZone)
Parameters :
Name Type Optional
element ElementRef No
dsRegistry DataSourceRegistry No
injector Injector No
helperService SmartViewerHelperService No
zone NgZone No

Inputs

dataSourceStateMonitor
Type : string
enabledState
Type : string
id
Type : string
name
Type : string

Accessors

enabledState
setenabledState(value: string)
Parameters :
Name Type Optional
value string No
Returns : void

result-matching ""

    No results matching ""