Widget 2.0 Text Only Buttons

I received an email about this being added. Here is the gist of it.

This feature has been implemented as of build 1092. What you need to do is to do the following when you create the button:

local button3 = widget.newButton

{

    label = “Button 3”,

    textOnly = true

}

Please notice the textOnly line.

great that it’s working again

Question - I note mine works without using the “textOnly” attribute - just wondering why this attribute was introduced then?

teHi greg886,

textOnly was introduced to allow the generation of text-only buttons as opposed to generating image-based buttons. Yes it works without specifying textOnly = true, but then you’ll have unexpected behaviour along the way.

Hope this helps,

Alex.