[ALOY-153] For the Widget element change the syntax to be <Require widgetid="myWidgetID/>
|Fix Version/s||2012 Sprint 16, Release 3.0.0|
- Russell McMahon 2012-08-01
Since both widgets and views will use the Require element we should have a type attribute. If type is missing default to type="view"
/* require brings in trifecto */
- Tony Lukasavage 2012-08-07
OK, but we'll need to use something else for the widget id, since *id* is reserved for Alloy use. How about we use *src* for both cases and let the *type* determine how each should be handled?
I actually like the idea of doing this initially:
<Require type="widget" src="widgetId"/> <Require type="view" src="path/to/view"/>
but it starts introducing more reserved keywords. It's also not as flexible as using *type* if we ended up adding more types. But... man does it look pretty, clean, and expressive. I don't know, I might be talking myself back into option #2 as I'm typing. Thoughts?
<Require widget="widgetId"/> <Require view="path/to/view"/>
- Tony Lukasavage 2012-08-07 All information in this ticket has been condensed into ALOY-152