Attach a new result by adding it to the attachedResults state.
Detach a result by removing it from the attachedResults state.
Check if a specific result is part of the list of AttachedResults in the state.
A boolean indicating if the result is attached.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
The AttachToCase controller is responsible for handling the attach and detach actions on a specific result. It also provides a function
isAttachedto verify if currently a specific result is part of the attachedResults state.Deprecated
Use
buildAttachedResultsinstead. // TODO: SFINT-6395 - This controller will be removed in ui-kit v4.