src/ui/common/services/databound-control-registry.service.ts
Methods |
| getDataboundControl | ||||||||
getDataboundControl(instanceName: string)
|
||||||||
|
Gets a databound control by instance name
Parameters :
Returns :
IDataBoundControl
The databound control |
| getDataboundControlAsObservable | ||||||||
getDataboundControlAsObservable(instanceName: string)
|
||||||||
|
Gets a databound control by instance name as an observable
Parameters :
Returns :
Observable<IDataBoundControl>
The databound control as an observable |
| getDataboundControlsForDataSourceAsObservable | ||||||||
getDataboundControlsForDataSourceAsObservable(dataSourceName: string)
|
||||||||
|
Gets registered databound controls associated with a data source. If the form provided no expected controls for the data source, this emits an empty array immediately.
Parameters :
Returns :
Observable<IDataBoundControl[]>
|
| getDataboundControlSignal | ||||||||
getDataboundControlSignal(instanceName: string)
|
||||||||
|
Gets a databound control by instance name as a signal.
Parameters :
Returns :
Signal<IDataBoundControl | undefined>
The databound control as a signal |
| registerDataboundControl | ||||||||
registerDataboundControl(control: IDataBoundControl)
|
||||||||
|
Registers a databound control
Parameters :
Returns :
void
|
| removeExpectedDataboundControls | ||||||||
removeExpectedDataboundControls(expectedControlsByDataSource: Map
|
||||||||
|
Removes the given expected databound controls (per data source). The data source entry is dropped only once it has no remaining expected controls. Callers must pass only the entries they contributed (the return value of addExpectedDataboundControls) so expectations shared with another owner survive. Used when a dynamic layout fragment slot is cleared.
Parameters :
Returns :
void
|
| setExpectedDataboundControls | ||||||||
setExpectedDataboundControls(expectedControlsByDataSource: Map
|
||||||||
|
Sets the databound controls expected to register for each data source.
Parameters :
Returns :
void
|
| unregisterAll |
unregisterAll()
|
|
Unregisters all databound controls from this registry.
Returns :
void
|
| unregisterDataboundControl | ||||||||
unregisterDataboundControl(instanceName: string)
|
||||||||
|
Unregisters a databound control
Parameters :
Returns :
void
|