File

src/ui/tableio/tableio-target.component.ts

Description

Base class for Smart TableIO Targets (e.g. SmartGridComponent, SmartViewerComponent)

Extends

AbstractFormChild

Implements

ISSEHEnabledComponent OnDestroy IDataBoundControl ISmartTableIOTarget

Index

Properties
Methods
Inputs
Outputs
Accessors

Inputs

prompt-before-delete
Type : string
smart-event-handlers
Type : SSEHEventHandlerDefinitions
ignoreFlexboxLayout
Type : boolean
smart-help-text
Type : string | undefined

Sets the HelpText value for this form child.

smart-instance-name
Type : string

The instance name of the component

smart-object-name
Type : string

The object name of the component

Outputs

onAfterAddRecord
Type : EventEmitter<AfterAddEventArgument>
onAfterCancelRecord
Type : EventEmitter<AfterCancelEventArgument>
onAfterCopyRecord
Type : EventEmitter<AfterCopyEventArgument>
onAfterDeleteRecord
Type : EventEmitter<AfterDeleteEventArgument>
onAfterEnableFields
Type : EventEmitter<AfterEnableFieldsEventArgument>
onAfterSaveChanges
Type : EventEmitter<AfterSaveChangesEventArgument>
onBeforeAddRecord
Type : EventEmitter<BeforeAddEventArgument>
onBeforeCancelRecord
Type : EventEmitter<BeforeCancelEventArgument>
onBeforeCopyRecord
Type : EventEmitter<BeforeCopyEventArgument>
onBeforeDeleteRecord
Type : EventEmitter<BeforeDeleteEventArgument>
onBeforeEnableFields
Type : EventEmitter<BeforeEnableFieldsEventArgument>
onBeforeSaveChanges
Type : EventEmitter<BeforeSaveChangesEventArgument>

Methods

Abstract callLogicMethod
callLogicMethod(methodName: string, ...args: any[])

Calls a method on the logic class instances

Parameters :
Name Type Optional Description
methodName string No
  • The method name to call
args any[] No
  • Arguments to pass to the method
Returns : Promise | any

The result of the method call

getDataSource
getDataSource(dataSourceName?: string)

Returns the data source for the table IO target

Parameters :
Name Type Optional Description
dataSourceName string Yes
  • The name of the data source
Abstract getSelectedRecords
getSelectedRecords()
Returns : T[]
Abstract getTableIoSource
getTableIoSource()
Public getToolbarDispatchPolicy
getToolbarDispatchPolicy(button: SmartToolbarButtonComponent)

Returns the policy captured before public toolbar output subscribers run.

Parameters :
Name Type Optional Description
button SmartToolbarButtonComponent No

The clicked toolbar button.

The click-time dispatch policy.

Abstract handleAdd
handleAdd()
Returns : void
Abstract handleCancel
handleCancel(ev?: any)
Parameters :
Name Type Optional
ev any Yes
Returns : void
Abstract handleCopy
handleCopy()
Returns : void
Abstract handleDelete
handleDelete()
Returns : void
Abstract handleSave
handleSave(ev?: any)
Parameters :
Name Type Optional
ev any Yes
Returns : void
Public handleSuppressedToolbarButton
handleSuppressedToolbarButton(button: SmartToolbarButtonComponent, context: TableIOToolbarDispatchContext)

Performs target-specific UI cleanup after a consumer suppresses central toolbar dispatch.

Parameters :
Name Type Optional Description
button SmartToolbarButtonComponent No

The clicked toolbar button.

context TableIOToolbarDispatchContext No

The accepted click state.

Returns : void
Public handleToolbarButton
handleToolbarButton(button: SmartToolbarButtonComponent, context?: TableIOToolbarDispatchContext)

Handles a toolbar button click routed through the active TableIO target.

Parameters :
Name Type Optional Description
button SmartToolbarButtonComponent No

The clicked toolbar button.

context TableIOToolbarDispatchContext Yes

The accepted click state.

Returns : boolean

True when the target handled the button.

Abstract handleUpdate
handleUpdate()
Returns : void
Abstract handleView
handleView()
Returns : void
Async registerTableIOTarget
registerTableIOTarget()

Registers the table IO target with the registry

Returns : any
Abstract syncToolbarWithTableIOState
syncToolbarWithTableIOState(toolbar: ISmartTableIOSource)

Syncs the toolbar button states with the current state of this table IO target. This method is called when the target is activated and should ensure the toolbar buttons reflect the current state, including any component-specific internal states.

Parameters :
Name Type Optional Description
toolbar ISmartTableIOSource No
  • The toolbar to sync
Returns : void
Public Abstract handleLayoutChange
handleLayoutChange(styling: any)

Handles a layout change by the parent Smart Form

Parameters :
Name Type Optional
styling any No
Returns : any
Public notifyLoadingFinished
notifyLoadingFinished(objectName: string)

Notifies the parent Smart Form that this form child has finished loading

Parameters :
Name Type Optional
objectName string No
Returns : void

void

Properties

Public tableIoStateSignal
Type : WritableSignal<TableIOTargetState>
Default value : signal( TableIOTargetState.IDLE )

Signal that tracks the current TableIO operation state. Used for synchronizing state between group assign source/target viewers.

Public injector
Type : Injector

Accessors

useCentralTableIODispatch
getuseCentralTableIODispatch()

Whether toolbar TableIO button clicks should be dispatched directly by the toolbar.

Returns : boolean
tableIOTargetKey
gettableIOTargetKey()

The canonical key identifying this target in the TableIO target registry and toolbar activation. Registration, activation and active-target comparisons must all use this value.

Returns : string
isDestroyed
getisDestroyed()

Whether this TableIO target has been destroyed.

Returns : boolean

results matching ""

    No results matching ""