File

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

Description

Interface for components that can be table IO targets (e.g., SmartGridComponent, SmartViewerComponent)

Index

Methods

Methods

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

getTableIoSource
getTableIoSource()

Gets the table IO source (toolbar) associated with this target

The table IO source

handleAdd
handleAdd()

Handles the add action

Returns : void
handleCancel
handleCancel(ev?: any)

Handles the cancel action

Parameters :
Name Type Optional Description
ev any Yes
  • Optional event argument
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 :
Name Type Optional Description
ev any Yes
  • Optional event argument
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 :
Name Type Optional Description
toolbar ISmartTableIOSource No
  • The toolbar to sync
Returns : void

results matching ""

    No results matching ""