Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

custom widget and styling with master .tss

$
0
0

hi I have an alloy project and within the project i have created a custom checkbox widget.

In the checkbox widget.js, I have the following code to take in args and initialize x, y, position of the widget. These parameters are passed in from my parent alloy project when calling Alloy.CreateWidget().

// widget.js
 
var _args = arguments[0] || {};
$.chkbox.backgroundImage = "grayplus.png";
$.chkbox.left = _args.left;
$.chkbox.top = _args.top;
Ideally I would like to pass in the x, y, width, height info to the widget from my parent alloy project's .tss file. What method do i need to implement in my custom widget file to intercept these .tss file configs (such as x, y, width, height, etc)?

Thanks.


Viewing all articles
Browse latest Browse all 8068

Trending Articles