function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi Kumar 6740Ravi Kumar 6740 

How to use Custom action button in our lightning component?

Suraj Tripathi 47Suraj Tripathi 47
Hi Ravi,
you can use your custom action button in the lightning component by using onclick attribute of the lightning button.
put the name of your custom function like as onclick="{!c.function_Name}" and provide the definition of the function in the controller (In JS file) according to requirements.
Check this link out maybe it will help you -->
https://trailhead.salesforce.com/en/content/learn/modules/lex_dev_lc_basics/lex_dev_lc_basics_controllers

---------------
If you find your Solution then mark this as the best answer. 

Thank you!
Regards,
Suraj Tripathi
 
Ravi Kumar 6740Ravi Kumar 6740
Hi Suraj,

I want use action button of custom object inside lightning component.

Thanks,
Ravi
Suraj Tripathi 47Suraj Tripathi 47
Hi Ravi,
check out this link maybe it will help you -->
https://salesforce.stackexchange.com/questions/221217/how-to-fire-global-action-from-a-lightning-component

Thank you!

Regards,
Suraj Tripathi