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(dsRegistry: DataSourceRegistry, helperService: SmartViewerHelperService<SmartViewerComponent>, widgetFactory: WidgetFacadeFactory, zone: NgZone)
|
|||||||||||||||
|
Parameters :
|
| dataSourceStateMonitor |
Type : string
|
| enabledState |
Type : string
|
|
Sets the enabled states based on the input string |
| name |
Type : string
|
| enabledState | ||||||||
setenabledState(value: string)
|
||||||||
|
Sets the enabled states based on the input string
Parameters :
Returns :
void
|