bindWidget

Finds widget by widgetName and store it to annotated variable. if widgetName is empty then widget will be extracted by annotated variable name.

struct bindWidget {}

Members

Variables

widgetName
string widgetName;

Widget name if is empty then retrieving name will be from variable name

Examples

@ViewWidget Button okButton;
@ViewWidget("cancelButton") Button closeButton;

// Without attribute
okButton = manager.findWidgetByName("okButton");
manager.findWidgetByName("cancelButton");

Meta