How do I set individual widget button titles?

If you added more than one widgets to a page and you want them to have different text captions, this demo shows you how to do this with some help of JS API.