Titanium JIRA Archive
Alloy (ALOY)

[ALOY-153] For the Widget element change the syntax to be <Require widgetid="myWidgetID/>

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-08-07T07:52:37.000+0000
Affected Version/sn/a
Fix Version/s2012 Sprint 16, Release 3.0.0
ComponentsRuntime, XML
Labelsn/a
ReporterRussell McMahon
AssigneeTony Lukasavage
Created2012-07-30T23:59:22.000+0000
Updated2014-02-04T00:34:52.000+0000

Description

Comments

  1. 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 */
  2. 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?

    option #1

       <Require type="widget" src="widgetId"/>
       <Require type="view" src="path/to/view"/> 
       
    I actually like the idea of doing this initially:

    option #2

       <Require widget="widgetId"/>
       <Require view="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?
  3. Tony Lukasavage 2012-08-07

    All information in this ticket has been condensed into ALOY-152

JSON Source