The requirement I am working on is a little complex so I am going to break my question down into a few points for clarity sake.
The application I am working on will run in the Salesforce Service Console.
Multiple custom console components will be used.
The requirement is that each of these custom console components be a Lightning component.
Currently, the only way to add a Lightning component into the service console is to embed the Lightning component into a Visualforce page and then add that Visualforce page as a custom console component as mentioned here.
I have this part of the code working and the component loads successfully without error. When the console loads, I am calling a method to get the object record id of the enclosing primary tab and then using that method's callback to dynamically create the Lightning component and pass the case Id to the component as an attribute. The code for that is below:
The component itself contains a list of links. When one of those links is clicked, a sub-tab needs to open that is associated to the current primary tab, which will be a case record in this case.
I know there are methods of doing this with the console integration toolkit, but I am not sure how to catch the click event on the link within the Lightning component and then bubble that event back out to the containing Visualforce page itself in order to use the integration toolkit methods.
I've really been wracking my brains on this one. If there is anymore clarity I can provide please let me know.