As per my understanding if I want to create a button in google sheets, I have to access draw and create a shape like button, then link it to the script i have as it's described in here and in How do you add UI inside cells in a google spreadsheet using app script?
I've three questions,
- Is there a way to create a button and its
onClick
function inside app script ? - If I used the method above (drawing, assigning ...) is this will be accessible to others who are going to use the same script (as i'm creating an Add-on)
- What's is the use of
SpreadsheetApp.getUi().Button
?