File

src/ui/common/services/tableio-target-registry.service.ts

Index

Properties
Methods

Methods

getTableIOTarget
getTableIOTarget(instanceName: string)

Gets a table IO target by instance name

Parameters :
Name Type Optional Description
instanceName string No
  • The instance name of the table IO target

The table IO target

getTableIOTargetAsObservable
getTableIOTargetAsObservable(instanceName: string)

Gets a table IO target by instance name as an observable

Parameters :
Name Type Optional Description
instanceName string No
  • The instance name of the table IO target

The table IO target as an observable

getTableIOTargetsByPage
getTableIOTargetsByPage(tabFolderInstanceName: string, pageSequence: number, pageKey?: string)

Gets table IO targets by tab folder page

Parameters :
Name Type Optional Description
tabFolderInstanceName string No
  • The instance name of the tab folder
pageSequence number No
  • The sequence number of the page (1-based)
pageKey string Yes
  • Optional page key for matching

Array of matching table IO targets, sorted by pageSequence

getTableIOTargetsByPageAndSource
getTableIOTargetsByPageAndSource(tabFolderInstanceName: string, pageSequence: number, tableIoSource: string, pageKey?: string)

Gets table IO targets by tab folder page and table IO source.

Parameters :
Name Type Optional Description
tabFolderInstanceName string No
  • The instance name of the tab folder
pageSequence number No
  • The sequence number of the page (1-based)
tableIoSource string No
  • The table IO source (toolbar instance name)
pageKey string Yes
  • Optional page key for matching

Array of matching table IO targets

getTableIOTargetsByPageAndSourceAsObservable
getTableIOTargetsByPageAndSourceAsObservable(tabFolderInstanceName: string, pageSequence: number, tableIoSource: string, pageKey?: string)

Gets table IO targets by tab folder page and table IO source as an observable. If there are no matching targets yet, this waits until the first match is registered.

Parameters :
Name Type Optional Description
tabFolderInstanceName string No
  • The instance name of the tab folder
pageSequence number No
  • The sequence number of the page (1-based)
tableIoSource string No
  • The table IO source (toolbar instance name)
pageKey string Yes
  • Optional page key for matching

Observable emitting the first non-empty match

getTableIOTargetsBySource
getTableIOTargetsBySource(tableIoSource: string)

Gets all table IO targets registered for a table IO source.

Parameters :
Name Type Optional Description
tableIoSource string No
  • The table IO source instance name.

The matching table IO targets.

registerTableIOTarget
registerTableIOTarget(targetMetadata: ITableIOTargetMetadata)

Registers a table IO target

Parameters :
Name Type Optional Description
targetMetadata ITableIOTargetMetadata No
  • The table IO target metadata to register
Returns : void
setFormConfiguration
setFormConfiguration(formConfiguration: SmartFormConfiguration)

Sets the form configuration for automatic page info lookup

Parameters :
Name Type Optional Description
formConfiguration SmartFormConfiguration No
  • The form configuration
Returns : void
unregisterAll
unregisterAll()

Unregisters all table IO targets from this registry.

Returns : void
unregisterTableIOTarget
unregisterTableIOTarget(instanceName: string, target?: ITableIOTargetMetadata)

Unregisters a table IO target.

Parameters :
Name Type Optional Description
instanceName string No
  • The instance name of the table IO target
target ITableIOTargetMetadata Yes
  • Optional target identity.
Returns : void

Properties

Public Readonly tableIOTargetRegistered
Type : unknown
Default value : new Subject<ITableIOTargetMetadata>()
Public Readonly tableIOTargetUnregistered
Type : unknown
Default value : new Subject<ITableIOTargetMetadata>()

results matching ""

    No results matching ""