src/ui/tableio/tableio-target.component.ts
Base class for Smart TableIO Targets (e.g. SmartGridComponent, SmartViewerComponent)
ISSEHEnabledComponent
OnDestroy
IDataBoundControl
ISmartTableIOTarget
Properties |
|
Methods |
|
Inputs |
Outputs |
Accessors |
| 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 |
| 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>
|
| Abstract callLogicMethod | ||||||||||||
callLogicMethod(methodName: string, ...args: any[])
|
||||||||||||
|
Calls a method on the logic class instances
Parameters :
Returns :
Promise | any
The result of the method call |
| getDataSource | ||||||||
getDataSource(dataSourceName?: string)
|
||||||||
|
Returns the data source for the table IO target
Parameters :
Returns :
Observable<SmartDataSource | null>
|
| Abstract getSelectedRecords |
getSelectedRecords()
|
|
Returns :
T[]
|
| Abstract getTableIoSource |
getTableIoSource()
|
|
Returns :
Promise | SmartToolbarComponent | null
|
| Public getToolbarDispatchPolicy | ||||||||
getToolbarDispatchPolicy(button: SmartToolbarButtonComponent)
|
||||||||
|
Returns the policy captured before public toolbar output subscribers run.
Parameters :
Returns :
TableIOToolbarDispatchPolicy
The click-time dispatch policy. |
| Abstract handleAdd |
handleAdd()
|
|
Returns :
void
|
| Abstract handleCancel | ||||||
handleCancel(ev?: any)
|
||||||
|
Parameters :
Returns :
void
|
| Abstract handleCopy |
handleCopy()
|
|
Returns :
void
|
| Abstract handleDelete |
handleDelete()
|
|
Returns :
void
|
| Abstract handleSave | ||||||
handleSave(ev?: any)
|
||||||
|
Parameters :
Returns :
void
|
| Public handleSuppressedToolbarButton | ||||||||||||
handleSuppressedToolbarButton(button: SmartToolbarButtonComponent, context: TableIOToolbarDispatchContext)
|
||||||||||||
|
Performs target-specific UI cleanup after a consumer suppresses central toolbar dispatch.
Parameters :
Returns :
void
|
| Public handleToolbarButton | ||||||||||||
handleToolbarButton(button: SmartToolbarButtonComponent, context?: TableIOToolbarDispatchContext)
|
||||||||||||
|
Handles a toolbar button click routed through the active TableIO target.
Parameters :
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 :
Returns :
void
|
| Public Abstract handleLayoutChange | ||||||
handleLayoutChange(styling: any)
|
||||||
|
Handles a layout change by the parent Smart Form
Parameters :
Returns :
any
|
| Public notifyLoadingFinished | ||||||
notifyLoadingFinished(objectName: string)
|
||||||
|
Notifies the parent Smart Form that this form child has finished loading
Parameters :
Returns :
void
void |
| 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
|
| 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
|