function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
But in lightning you can use quick actions as buttons as you said
Please refer the following link
http://astreait.com/Custom_Button_OnClick_JavaScript_through_Lightning_Components/
https://trailhead.salesforce.com/en/modules/lex_customization/units/lex_customization_buttons_links
Thanks