src/ui/viewer/enabled-state.directive.ts
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.
Selector | [enabledState] |
Inputs |
Accessors |
constructor(element: ElementRef, dsRegistry: DataSourceRegistry, injector: Injector, helperService: SmartViewerHelperService, zone: NgZone)
|
||||||||||||||||||
Parameters :
|
dataSourceStateMonitor |
Type : string
|
enabledState |
Type : string
|
id |
Type : string
|
name |
Type : string
|
enabledState | ||||||
setenabledState(value: string)
|
||||||
Parameters :
Returns :
void
|