[ALOY-153] For the Widget element change the syntax to be <Require widgetid="myWidgetID/>
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | High |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-08-07T07:52:37.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2012 Sprint 16, Release 3.0.0 |
| Components | Runtime, XML |
| Labels | n/a |
| Reporter | Russell McMahon |
| Assignee | Tony Lukasavage |
| Created | 2012-07-30T23:59:22.000+0000 |
| Updated | 2014-02-04T00:34:52.000+0000 |
Since both widgets and views will use the Require element we should have a type attribute. If type is missing default to type="view"
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?
option #1
I actually like the idea of doing this initially:option #2
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?All information in this ticket has been condensed into ALOY-152