Titanium JIRA Archive
Alloy (ALOY)

[ALOY-202] Implement a "nolayout" attribute (or something similar) in tags

GitHub Issuen/a
Resolution Date2012-11-14T02:53:16.000+0000
Affected Version/s2012 Sprint 18
Fix Version/s2012 Sprint 18, Release 3.0.0
ReporterTony Lukasavage
AssigneeTony Lukasavage


There will be times when we want to create an element in markup, but don't want to include it in the view hierarchy. A simple example might be a nav button in a navigation group. I want to be able to create the button in markup so I don't have to create it from scratch in code, or create a whole separate controller triad for it. The format could work something like this:


            <Window title="Window 1" id="win1">
                <Label>Window 1</Label>
                <Button id="rightNavButton" nolayout="true"/>


$.win1.rightNavButton = $.rightNavButton;


  1. Russell McMahon 2012-08-24

    Not so sure this is good. It seems odd to have a layout and say don't add to that layout. We can talk about this.
  2. Tony Lukasavage 2012-08-24

    So in the above example, how would you create a leftNavButton for the navigation group? Create an entirely separate view jsut for a button? Create it all in code, which alloy is built to avoid? I'm open to other alternatives that don't include the last 2 sentences. Also, Flex has something similar in its includeInLayout property for its markup: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7dfb.html
  3. Russell McMahon 2012-08-28

    Russ to talk to Gabe and doc team to get resolution.
  4. Russell McMahon 2012-08-29

  5. Russell McMahon 2012-09-01

    We will not use an attribute but instead use custom parsers.
  6. Tony Lukasavage 2012-11-14

    Re-opening to mark as duplicate of a more relevant, new ticket: ALOY-383
  7. Tony Lukasavage 2012-11-14

    Duplicate of ALOY-383

JSON Source