I want to create a Lightning component where i can define some custom actions which can be used by the component which is creating instance. It will be very similar to the onrowselection, onsort actions on lightning:datatable or onclick of lightning:button.
Anybody knows whether it possible for custom components in lightning, if yes then how?