src/ui/tableio/tableio-target.interface.ts
Interface for components that can be table IO targets (e.g., SmartGridComponent, SmartViewerComponent)
Methods |
| callLogicMethod | ||||||||||||
callLogicMethod(methodName: string, ...args: any[])
|
||||||||||||
|
Calls a method on the logic class instances
Parameters :
Returns :
Promise | any
The result of the method call |
| getTableIoSource |
getTableIoSource()
|
|
Gets the table IO source (toolbar) associated with this target
Returns :
Promise | ISmartTableIOSource | null
The table IO source |
| handleAdd |
handleAdd()
|
|
Handles the add action
Returns :
void
|
| handleCancel | ||||||||
handleCancel(ev?: any)
|
||||||||
|
Handles the cancel action
Parameters :
Returns :
void
|
| handleCopy |
handleCopy()
|
|
Handles the copy action
Returns :
void
|
| handleDelete |
handleDelete()
|
|
Handles the delete action
Returns :
void
|
| handleSave | ||||||||
handleSave(ev?: any)
|
||||||||
|
Handles the save action
Parameters :
Returns :
void
|
| handleUpdate |
handleUpdate()
|
|
Handles the update action
Returns :
void
|
| handleView |
handleView()
|
|
Handles the view action
Returns :
void
|
| 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
|